[jboss-user] [EJB 3.0] - Re: Programmatically looking up EAR-name of the current appl

2007-03-30 Thread bdecoste
Always a best practice to use jndi references. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033239#4033239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033239 ___ jboss-us

[jboss-user] [EJB 3.0] - Re: Programmatically looking up EAR-name of the current appl

2007-03-30 Thread fhh
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 bu

[jboss-user] [EJB 3.0] - Re: Programmatically looking up EAR-name of the current appl

2007-03-30 Thread bdecoste
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033211#4033211 Reply to the post : http