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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...