users@glassfish.java.net

Re: Help calling EJB3 session bean from Custom MBean...

From: <glassfish_at_javadesktop.org>
Date: Thu, 31 Jan 2008 05:02:46 PST

What you could maybe do is to use a regular MBean and register it during GF start-up using a ServletContextInitializer. If you instanciate the MBean yourself in the ServletContextInitializer, and then call registerMBean(...) on the MBeanServer, the MBean is in the same classloader as your EAR. The lookup will then probably work.
[Message sent by forum member 'ewernli' (ewernli)]

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