2 Replies Latest reply on Feb 20, 2002 3:33 AM by Narinder Singh Deonia

    Topic Not Durable in case of JBoss Shutdown

    Narinder Singh Deonia Newbie

      Hi all

      I am using Jboss 2.4.4 on a NT machine.
      I have made a durable topic subscriber.

      If a topic is published and the subscriber (a MDB) is not deployed
      at that very moment it gets the topic when it is deployed (all well).
      But if after publishing the topic (subscriber MDB is not deployed at that time), I restart the JBoss and deploy the subscriber MDB, it does not receive the topic.

      I am using rollinglogged Persistence

      jboss.jcml has following entry


      ../../db/jbossmq/


      ejb-jar.xml of MDB is looks like

      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>HelloTopicCMTMDB1</ejb-name>
      <ejb-class>com.titan.helloMDBTopic1.HelloMDBTopic1</ejb-class>
      <message-selector>color='RED' OR color='YELLOW'</message-selector>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>Durable</subscription-durability>
      </message-driven-destination>
      </message-driven>
      </enterprise-beans>
      <assembly-descriptor>
      <container-transaction>

      <ejb-name>HelloTopicCMTMDB1</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>Required</trans-attribute>
      </container-transaction>
      </assembly-descriptor>
      </ejb-jar>


      Can any one tell me where I am wrong.

      Thanks in advance for any help

      Regards
      Narinder.