5 Replies Latest reply on Dec 10, 2003 4:30 AM by Adrian Brock

    mdb-subscription-id?

    liuhf Newbie

      hi all,

      my jboss is v3.0.6,
      there is an item of mdb-subscription-id in the jboss.3.0.dtd
      what value should i asign to it?
      where dose the value have a reference from?

      anybody help please.
      thanks.

      liuhf

        • 1. Re: mdb-subscription-id?
          Adrian Brock Master

          It is the name of the subscription name.

          A durable subscription has two parts.
          The client id (set on the connection or configured on the user)
          and a subscription name specified on createDurableSubscriber.

          Regards,
          Adrian

          • 2. Re: mdb-subscription-id?
            liuhf Newbie

            THANKS Adrian.

            but which value should i assign to mdb-subscriptionp-id?

            the jbossmq-state.xml has:

            testUser
            testUser
            idtestUser

            ...

            idtestUser
            mytestTopic


            in the jboss.xml:
            when i write:
            <mdb-client-id>idtestUser</mdb-client-id>
            i catch exception:
            the connection has already a clientID.
            when i write :
            <mdb-subscription-id>idtestUser</mdb-subscription-id>
            i catch exception:
            connection not authorized to do durable subscription on topic:mytestTopic.

            i have no way now.i browse the forums every day.not find the answer.
            help please.

            liuhf

            • 3. Re: mdb-subscription-id?
              Adrian Brock Master

              idtestUser is used by mdb-subscription-id

              Your durable subscription config is broken...



              needle <!-- client id -->
              myDurableSub <!-- subscription name/id -->
              TestTopic



              Regards,
              Adrian

              Regards,
              Adrian

              • 4. Re: mdb-subscription-id?
                liuhf Newbie

                thanks Adrian.

                can i write use this:


                idtestUser
                idtestUser
                mytestTopic



                or this:


                idtestUsermytestTopic



                i mean wheather i can use either of above or i can use the first one only.

                liuhf.



                • 5. Re: mdb-subscription-id?
                  Adrian Brock Master

                  Only the first means anything.

                  A durable subscription is keyed by client id and name.

                  Regards,
                  Adrian