I really new to EJB 3. I try some example code of EJB 3. I found some problem
1. Aboout standart default JNDI naming in, Its look different for each app.server in. Is not it? in Jboss for session context.lookup("shortnameClass/remote"); in sjas for session context.lookup("fullnameClass/remote"); which one will be use as srandart ans also being asked in SCBCD 5?
2. I try this snippet package ejb3inaction.example;
Its clear now about null pointer in stand alone client. How about standart naming in JNDI for EJB 3?
Joined: Sep 18, 2004
Well I have used jboss and it uses class<shortname>/remote as you rightly mentioned. In in Head First SCBCD they mention a look with complete naming context i.e java:comp/env/ejb/<MyEJBName>, where ejb/MyEJBName is specified name for ejb ref in the DD.
In my test jboss application I could look up using the following:
For each application server, there are different provisions in addition for lookups. Like jboss has @RemoteBinding to specify the jndi name for bean lookup etc.