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

2008-09-25 Thread Crucifix
This is exactly what I wanted.  Thanks so much for your help!

I see I no longer need to specify the 'name' in the @Stateless attribute 
either.  This is my Global JNDI Namespace before and after the change:

Before:

  | @Stateless(name="TestEJB")
  | @Remote(IPing.class)
  | 


  |   +- TestEAR-1.0.0 (class: org.jnp.interfaces.NamingContext)
  |   |   +- TestEJB (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- remote (proxy: $Proxy161 implements interface 
test.IPing,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
  | 

After:

  | @Stateless
  | @Remote(IPing.class)
  | @RemoteBinding(jndiBinding="TestEAR/TestEJB/remote")
  | 


  |   +- TestEAR (class: org.jnp.interfaces.NamingContext)
  |   |   +- TestEJB (class: org.jnp.interfaces.NamingContext)
  |   |   |   +- remote (proxy: $Proxy177 implements interface 
test.Ping,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
  | 



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2008-09-24 Thread jaikiran
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
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2008-09-24 Thread Crucifix
Correction, I cannot find a way to change the  part without renaming 
my ear, not .

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user