A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
EJB and other Java EE Technologies
Server independent JNDI name annotation
Joined: Jul 10, 2008
Jan 19, 2009 04:53:14
I am using
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)?
Luciano A. Pozzo
Joined: Jun 20, 2005
Jan 21, 2009 04:55:26
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:
subject: Server independent JNDI name annotation
Specifying EJB JNDI name - Vendor dependent?
mappedName and name attributes
Still having problem with my first EJB3
jndi name in ejb3?
Requesting help in connecting a DataSource(DSSDEV)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014