|
|
The home object is an EJB Object factory. The client requests an
EJB Object form this home object. The home object has three main
tasks:
-
create EJB objects
-
find existing EJB objects.
-
remove EJB objects.
-
Home objects are container-specific and are generated with tools provided
by the container vendor. They include many other container-specific
services, such as load balancing.
-
Though the home objects are generated automatically, you must still tell
it what method signatures to implement. You do this with a Home
Interface that the home object implements.
-
The home interface must extend interface javax.ejb.EJBHome.
Further, EJBHome extends java.rmi.Remote, so the same
ground rules apply.
The alternative: the Local Interface
|