This content has been marked as final.
Show 2 replies
-
1. Re: Local Lookup
alrubinger Oct 23, 2006 1:08 PM (in response to wconroy)By default, the EJB is bound to a JNDI address prefixed by the EAR name...I like to override this, specifying my own address by using @LocalBinding and @RemoteBinding annotations in order to ensure the bean always ends up in the same place, no matter the packaging.
S,
ALR -
2. Re: Local Lookup
wconroy Oct 23, 2006 1:16 PM (in response to wconroy)I would like to keep the jndi names bound with the ear name that way i can deploy multiple applications with the same beans (or at least bean names) together on the same jboss instance. The question is more of internal to the application, if I need to look up a bean, but cannot use injections (in my case because it is a scheduled job not a bean), how can I find the ear name/application a class is deployed in at runtime? Is that even possible