Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
It is sorta covered in the
JavaRanch Style Guide
subject: Server independent JNDI name annotation
Still having problem with my first EJB3
Specifying EJB JNDI name - Vendor dependent?
Requesting help in connecting a DataSource(DSSDEV)
mappedName and name attributes
jndi name in ejb3?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013