Comparing Remote vs. Local interfaces
The EJBObject and EJBHome interfaces have more methods than the EJBLocalObject and EJBLocalHome interfaces because there are methods that don’t make sense in a local context.
REMOTE client view
<<interface>> EJBHome |
EJBMetaData getEJBMetaData() |
HomeHandle getHomeHandle() |
void remove(Handle h) |
void remove(Object key) |
<<interface>> EJBObject |
Object getPrimaryKey() |
EJBHome getEJBHome() |
Handle getHandle() |
void remove() |
boolean isIdentical(EJBObject o) |
LOCAL client view
Get Head First EJB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.