Red Hat APPLICATION SERVER - JONAS Manual page 152

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Application server

Table of Contents