aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Server independent JNDI name annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Server independent JNDI name annotation" Watch "Server independent JNDI name annotation" New topic
Author

Server independent JNDI name annotation

Varun Chopra
Ranch Hand

Joined: Jul 10, 2008
Posts: 211
I am using JBOss server.
In one tutorial on net it is mentioned that @org.jboss.ejb3.LocalBinding or @org.jboss.ejb3.remoting.RemoteBinding can be used to specify local/remote JNDI name.
Is there a server independent way (annotation)?


-Varun -
(My Blog) - Online Certifications - Webner Solutions
Luciano A. Pozzo
Ranch Hand

Joined: Jun 20, 2005
Posts: 112
You can use the mappedName attribute of the @EJB annotation. The problem is that is not required to be supported by all implementations.

So, i don't think there is a standard way to do this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server independent JNDI name annotation