1 Reply Latest reply on Jul 21, 2009 5:02 AM by asdf asdf

    ClassLoader issue with MDB in multiple ear

    Julien ZANON Newbie

      Hi,

      I'm using JBoss 4.2.3 GA and Jboss Messaging 1.4 GA

      2 ear are deployed in Jboss:

      1st ear:
      * create object messages on custom topic. These ObjectMessage contain my own messages types.
      * consum messages using MDB technologie.

      2nd ear (deployed as a plugin):
      * only consum messages using MDB
      * contains an APi of the 1st ear classes

      <attribute name="Isolated">true</attribute>
      <attribute name="CallByValue">true</attribute>


      Isolation is wanted.

      A problem appears in my 2nd ear:
      Transported message mypackage.impl.MyMessage cannot be cast into mypackage.interface.Message.

      If I set :

      <attribute name="Isolated">true</attribute>
      <attribute name="CallByValue">false</attribute>


      Same problem appears into 1st ear too!