Step 1 | The HelloEJB.jar file is imported into the deploytool. |
step 2 | The deploytool allows the deployer to enter or change local environment information in the DD. |
step 3 | The deploytool passes the HelloEJB.jar, including the updated DD, to the J2EE platform. |
step 4 | J2EE creates the application jar file (Hello.jar), then creates and compiles the home, remote, stubs, skeletons classes, etc. and stores them in its repository. |
step 5 | The name and remote reference class for the Hello bean is placed in the JNDI directory. |
step 6 | J2EE informs the deploytool that the EJB is deployed. |
step 7 | The deploytool returns a jar file containing the stubs and skeletons for the client. |
The Java EE implementation provides the client with stubs and skeletons in a jar file that is created by the Java EE at deployment time. In the reference implementation, the client downloads only a small remote reference class to the home object from JNDI at lookup()
time.
This class, which is a proxy for the remote object, invokes the stub when connecting to the bean's home object.
The client loads the stub from this jar file at run time. The name of the file for the Hello bean is HelloAppClient.jar.