2 Replies Latest reply on Jun 10, 2004 11:34 AM by Stephane Nicoll

    Could not configure MDB with durable subscription on 3.2.3

    Stephane Nicoll Master

      Hello,

      I read the mini tutorial on the forum
      http://www.jboss.org/index.html?module=bb&op=viewtopic&t=45285

      But it does not work. I have 3 MDBs with a durable subscription on a Topic. Example for one of them

      My ejb-jar:

      <message-driven >
      <![CDATA[Blah.]]>
      <display-name>Blah</display-name>
      <ejb-name>ejb/kserver/ParcelHistoryExportMDB</ejb-name>
      <ejb-class>com.blah.ParcelHistoryExportMDB</ejb-class>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>Durable</subscription-durability>
      </message-driven-destination>
      </message-driven>

      My jboss.xml

      <message-driven>
      <ejb-name>ejb/kserver/ParcelHistoryExportMDB</ejb-name> <destination-jndi-name>topic/kserver/EventTopic</destination-jndi-name>
      <mdb-user>b2bOutboundParcelHistory</mdb-user>
      <mdb-passwd>10moioui</mdb-passwd>
      <mdb-client-id>b2bOutboundParcelHistory</mdb-client-id> <mdb-subscription-id>b2bOutboundParcelHistoryDurableSubscriber</mdb-subscription-id> jboss.mq.destination:name=kserver/EventTopic,service=Topic
      </message-driven>


      My jbosmq-state.xml


      b2bOutboundParcelHistory
      10moioui


      [...]


      b2bOutboundParcelHistory


      [...]


      b2bOutboundParcelHistory
      b2bOutboundParcelHistoryDurableSubscriber
      kserver/EventTopic
      eventType = 'ttcode'



      Got the following exception on startup

      5:53:35,896 WARN [plugins.jms.JMSContainerInvoker] JMS provider failure detected:
      javax.jms.JMSSecurityException: Connection not authorized to do durable subscription on topic: kserver/EventTopic
      at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:142)
      at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:816)
      at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:297)
      at org.jboss.mq.il.jvm.JVMServerIL.subscribe(JVMServerIL.java:315)
      at org.jboss.mq.Connection.addConsumer(Connection.java:1082)
      at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:73)
      at org.jboss.mq.SpyConnection.createDurableConnectionConsumer(SpyConnection.java:115)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:586)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:674)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1173)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:686)


      Any idea?

      Regards,

      Stephane