[jboss-user] [EJB/JBoss] - Re: How To Modify Global JNDI Name

jaikiran do-not-reply at jboss.com
Thu Sep 25 02:10:34 EDT 2008


You can use the JBoss specific @RemoteBinding and @LocalBinding annotations to bind the EJB to the jndi name of your choice.

  | @Stateless
  | @Local(com.mycomp.MyLocal.class)
  | @Remote(com.mycomp.MyRemote.class)
  | @LocalBinding(jndiBinding="MyLocalJNDIName")
  | @RemoteBinding(jndiBinding="MyRemoteJNDIName")
  | public class MyBean implements MyLocal, MyRemote
  | {
  |     ...
  | }
  | 

For the remote interface, you can use MyRemoteJNDIName in the lookup and for the local interface you can use MyLocalJNDIName.


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

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



More information about the jboss-user mailing list