2 Replies Latest reply on Oct 14, 2004 12:08 AM by Shishir Jain

    Unable to deploy MDB

    Shishir Jain Newbie

      I am trying to deploy mdb (durable subc.) on jboss 4.0 but its throwing the following error, any help on this is greatly appriciated-

      17:26:28,327 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      17:26:38,342 INFO [JMSContainerInvoker] Reconnected to JMS provider
      17:26:38,342 WARN [JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSException: Null or empty subscription
      at org.jboss.mq.SpyConnection.createDurableConnectionConsumer(SpyConnect
      ion.java:151)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContaine
      rInvoker.java:675)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContain
      erInvoker.java:767)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.o
      nException(JMSContainerInvoker.java:1272)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvok
      er.java:779)


      ==========

      <ejb-jar>
       <enterprise-beans>
       <message-driven>
       <ejb-name>test/TextMDB</ejb-name>
       <ejb-class>com.TextMDB</ejb-class>
       <message-selector></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>
       <method>
       <ejb-name>test/TextMDB</ejb-name>
       <method-name>*</method-name>
       </method>
       <trans-attribute>Required</trans-attribute>
       </container-transaction>
       </assembly-descriptor>
      </ejb-jar>
      


      <?xml version="1.0"?>
      <jboss>
       <enterprise-beans>
       <message-driven>
       <ejb-name>test/TextMDB</ejb-name>
       <configuration-name>Standard Message Driven Bean</configuration-name>
       <destination-jndi-name>topic/testTopic</destination-jndi-name>
       <mdb-user>john</mdb-user>
       <mdb-passwd>needle</mdb-passwd>
       <mdb-subscriber-id>DurableSubscriberExample</mdb-subscriber-id>
       </message-driven>
       </enterprise-beans>
      </jboss>