[jboss-user] [Management, JMX/JBoss] - Re: Local JNDI lookup in local JMX bean?

nappinc do-not-reply at jboss.com
Fri May 25 07:50:32 EDT 2007


"genman" wrote : "java:comp/env" is a context only provided to EJBs and Servlets, it's not available from your MBeans.
  | 
  | You need to use a different strategy to access your web client. For this particular service, I don't really know. But take a look at the JNDI tree through the JNDI viewer and see if it's also available under a different name. Or look for docs that explain how to use this client external to EJBs...

Sounds like I've managed to find a corner case that J2EE 1.4 doesn't cope for...

The JNDIView MBean shows that my service-ref is not published under the java: or global JNDI contexts. Is there any way that I can do that, in addition to publishing it under the local java:comp/env context?

Alternatively I guess I'll have to revert to J2SE-style Service invocation, which seems bizarre and excessive given all this code is in the same .war file... ;(

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048659#4048659

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048659



More information about the jboss-user mailing list