This content has been marked as final.
Show 3 replies
-
1. Re: Programmatically looking up EAR-name of the current appl
bdecoste Mar 30, 2007 10:41 AM (in response to surak)The only way I can think of is to examine the jmx jboss.j2ee domain to search for deployments. Each bean will have an "ear=XXX" parameter. Take a look at the jmx-console.
-
2. Re: Programmatically looking up EAR-name of the current appl
fhh Mar 30, 2007 11:24 AM (in response to surak)I think the correct way to do this according to specs is to have a reference in the deployment desciptor and then look up the bean via java:/comp/env.
The correct jndi reference should then be put into your deployment descriptor during the build.
This is my idiosyncratic reading of the specs but maybe somebody more knowledgable can fill in more information.
Regards
Felix -
3. Re: Programmatically looking up EAR-name of the current appl
bdecoste Mar 30, 2007 11:31 AM (in response to surak)Always a best practice to use jndi references.