users@glassfish.java.net

Re: ClassNotFound JMX MBean calling remote session bean

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 May 2008 06:09:27 PDT

> It seems that JNDI lookup succeeds, but the class couldn't be loaded.

I tried exactly the same what you.
And I gave up. Still problems with JNDI or classloaders.

Then. I've thought up simplest solution.

Get reference to session bean in servlet.(@EJB works there)
Pass this reference to mbean in it's constructor or setter.
It works.

I have mbean packed in war together with servlet.

I wonder if there are any shortcomings of such solution?
[Message sent by forum member 'przemekp' (przemekp)]

http://forums.java.net/jive/thread.jspa?messageID=273128