0 Replies Latest reply on Dec 20, 2001 7:20 PM by Chris Sterling

    Cannot create durable subscription with MDB

    Chris Sterling Newbie

      This is the error that I get when launching JBoss (with EmbeddedTomcat)

      [Container factory] Serious error in init: org.jboss.mq.SpyJMSException: Cannot subscribe to this Destination: ClientID 'ID1' cannot create durable subscriptions.
      [Container factory] java.lang.Exception: org.jboss.mq.SpyJMSException: Cannot subscribe to this Destination: ClientID 'ID1' cannot create durable subscriptions.
      [Container factory] at org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContainer.java:173)

      The ejb-jar.xml for the MDB looks like this:
      <message-driven>
      <ejb-name>TheTaskSenderMessageBean</ejb-name>
      <ejb-class>TaskSenderBean</ejb-class>
      <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>

      The jboss.xml entry looks like this:
      <message-driven>
      <ejb-name>TheTaskSenderMessageBean</ejb-name>
      <destination-jndi-name>topic/task</destination-jndi-name>
      <configuration-name>Standard Message DrivenBean</configuration-name>
      <mdb-user>guest</mdb-user>
      <mdb-passwd>guest</mdb-passwd>
      <mdb-client-id>Guest</mdb-client-id>
      <resource-ref>
      <res-ref-name>jdbc/DataSource</res-ref-name>
      <jndi-name>jdbc/DataSource</jndi-name>
      </resource-ref>
      </message-driven>

      and the jbossmq-state.xml file entry is this:


      guest
      guest
      Guest

      Guest
      task




      Now, based on this information I would think that the Guest durable subscription could be created for the topic/task MDB. Does anyone see a problem with these entries?

      -Chris