On Nov 12, 2007, at 11:50 PM, ivanrc wrote:


Hello,

I had deployed a EJB 3 stateless bean, and the log show TeamBeanRemote as
Remote JNDI name:

08:37:26,015 INFO  [startup] Jndi(name=TeamBeanRemote) -->
Ejb(deployment-id=test_ejb3/TeamBean)

If I defined a @local interface, Do you know if the log have to print a line with local interface jndi name or Apache geronimo use the same name for both
remote interface and local interface?

You should see a second line with the local interface name.

Other thing, I need to lookup a EJB local interface from inside my EJB 3.0. I try to use java:/comp/env/... but it doesn´t work. Do I have to config
something inside my openejb-jar.xml descriptor?

If you'd like to lookup an ejb from another ejb you need to declare a dependency on it. Add a variable in your referring ejb like this:

  @EJB(name="myEjb", beanName="TeamBean")
  private TeamBeanRemote myEjb;


-David

Reply via email to