0 Replies Latest reply on Apr 13, 2006 5:27 AM by Bernhard Neuhauser

    MDB Undeployment does not work

    Bernhard Neuhauser Newbie

      Hi,

      I created a simple ejb3 MDB consuming topic messages.

      When i deploy my simple.ear containing just one ejb3 with the one mdb class the onMessage() Method fires whenever a message arrives.

      Next step: Undeploy leads to 2 lines:


      [EARDeployer] Undeploying J2EE application, destroy step: ...
      [EARDeployer] Undeployed J2EE application: ...


      The mdb is still consuming messaging. Still alive ..

      Now i try to deploy the ear again:
      There are 2 mdbs consuming messaging. The one from the first deployment, and the mdb from the 2nd deployment.

      Im not yet sure if this issue is because im using activemq.rar instead of jbossMQ. I just know that something is wrong with the undeployment feature.

      JBoss Version: 4.0.4cr2

      The test mdb:
      @MessageDriven(activationConfig = {
       @ActivationConfigProperty(propertyName = "resourceAdaptorName", propertyValue = "activemq-ra-4.0-M4.rar"),
       @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
       @ActivationConfigProperty(propertyName = "Destination", propertyValue = "MyTest") })
      public class MyTestMDB implements MessageListener {
       public void onMessage(Message msg) {
       System.out.println("hello world");
      }}
      


      any ideas?
      Bernhard