144
ejb-name SSA /ejb-name
jndi-name SSAHome /jndi-name
jonas-ejb-ref
ejb-ref-name ejb/ses1 /ejb-ref-name
jndi-name SS1Home_one /jndi-name
/jonas-ejb-ref
/jonas-session
...
jonas-session
ejb-name SS1 /ejb-name
jndi-name SS1Home_one /jndi-name
jndi-local-name SS1LocalHome_one /jndi-local-name
/jonas-session
...
The bean locates the home interface of the other Enterprise Bean using the EJB reference with the
following code:
InitialContext ictx = new InitialContext();
Context myenv = ictx.lookup("java:comp/env");
SS1Home home =
(SS1Home)javax.rmi.PortableRemoteObject.narrow(myEnv.lookup("ejb/ses1"),
SS1Home.class);
Chapter 12. Enterprise Bean Environment
Need help?
Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?
Questions and answers