[jboss-user] [EJB 3.0] - Session Bean call from an MBean, isolation and the TCCL
os
do-not-reply at jboss.com
Wed Mar 4 06:39:44 EST 2009
Hi,
I have an EAR containing an MBean and a Session Bean. Isolation is turned on. The Session Beans interface is not visible, since it should only be called via the MBean.
When I call the EJB3 Session bean from an MBeans method the org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory
checks if the Session Beans Proxy is loaded by the same classloader as the currents threads context classloader (TCCL). If not, it tries to relaod the Classes with the TCCL. But if the MBeans method is invoked from a WebContext (e.g. jmx-console) it fails with
RuntimeException("Can not find interface declared by Proxy in our CL + " + tcl, e)
since the Session Beans remote interface is not (and shall not) be visible from the Web context.
Is there a way to call a EJB3 Session Bean from an MBean while avoiding the reload of the classes by the SessionProxyObjectFactory?
Thanks in advance
Olaf
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214850#4214850
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214850
More information about the jboss-user
mailing list