0 Replies Latest reply on Nov 21, 2003 2:22 PM by llivings

    Multiple MDBs as durable subscribers

    llivings

      Using JBoss 2.4.10:

      I have multiple MDB's in my application. They are listening to various topic destinations and I have the set the subscription type on all of them to durable.

      Example snippet of jboss.xml:
      ------------------------------------
      <message-driven>
      <ejb-name>ejb/triversity/transactionware/asyncservicessite/ConfiguratorUpdatesMDB</ejb-name>
      <jndi-name>ejb/triversity/transactionware/asyncservicessite/ConfiguratorUpdatesMDB</jndi-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>topic/transactionware-enterprise-configurator-updates</destination-jndi-name>
      <mdb-user>user2</mdb-user>
      <mdb-passwd>pw</mdb-passwd>
      <mdb-client-id>ConfiguratorUpdatesMDB</mdb-client-id>
      </message-driven>
      <message-driven>
      <ejb-name>ejb/triversity/transactionware/pos/POSMDB</ejb-name>
      <jndi-name>ejb/triversity/transactionware/pos/POSMDB</jndi-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>topic/transactionware-enterprise-pos</destination-jndi-name>
      <mdb-user>user4</mdb-user>
      <mdb-passwd>pw</mdb-passwd>
      <mdb-client-id>POSMDB</mdb-client-id>
      </message-driven>
      --------------------------------

      I have configured my jbossmq-state.xml file with a seperate user for each MDB.
      -------------------------------

      user2
      pw
      ConfiguratorUpdatesMDB

      ConfiguratorUpdatesMDB
      transactionware-enterprise-configurator-updates



      user4
      pw
      POSMDB

      POSMDB
      transactionware-enterprise-pos


      ---------------------------------------------

      My Question is:
      Can I configure jboss.xml with jbossmq-state.xml in such a way that all the MDB's use one user?

      I have tried but when I do this JBoss startup fails trying to get a client ID for the durable subscription saying the client ID is already used by the server.

      I have the JBossBook 2.4.x pdf file but it is seriously lacking in this area.

      Regards,

      Lyndon.