[jboss-user] [EJB 3.0] - Re: @EJB annotation doesn't lookup globally JBoss

bdecoste do-not-reply at jboss.com
Fri Apr 6 13:33:59 EDT 2007


What is the local interface for SessionBeanB? I'm guessing you are injecting into a field of the bean tye not the interface type (i.e. SessionBeanBLocal not SessionBeanB). Are you seeing anything in the logs at deployment time? 

The default JNDI bindings for an EJB3 are ejbName/remote and ejbName/local for the remote and local business interfaces. If the EJB3 is deployed in an .ear, the default jndi bindings are earName/ejbName/remote and earName/ejbName/local. You can override the default with the @RemoteBinding and @LocalBinding annotations or the <jndi-name> and <local-jndi-name> in jboss.xml

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035410#4035410

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035410



More information about the jboss-user mailing list