2 Replies Latest reply on Nov 2, 2005 11:46 AM by tolukemi

    MBeans and Classloading

    tolukemi

      I'm encountering a problem when trying to invoke a method on an EJB via an MBean deployed in a webapp.
      The MBeans are instantiated and registered with MBeanServerImpl using the registerMBean(Object, ObjectName) method.
      I've noticed that classes being used by EJB appear to be loaded within the context of the webapp's classloader and this leads to problems as wrong versions of classes are being used. I would have felt that once the MBean has invoked the EJB classes would be loaded within the context of the EJB's classloader. Is my assumption wrong?