6 Replies Latest reply on May 15, 2003 6:39 AM by adrian.brock

    about subscription

    lian

      i am working on a project with jboss jms.I find it is difficult to aministrate the jms resource. For example, i can not use mbean configuring the queue/topic for more than one use. i can not administrate the subsription to the topic. it is all determined by the client.but i wish these sources should be adminitrated centerly. do i go to the wrong direction.
      who can give me some advice? thanks a lot.

        • 1. Re: about subscription

          What do you mean "more than one use"?

          Durable subscriptions can be removed
          using jbossmq-state.xml, but it requires you
          to restart the topic which is disruptive.

          Regards,
          Adrian

          • 2. Re: about subscription
            lian

            when the jboss restart, the queue/topic created by the mean will be lost. I wish it be written to the jbossmq-destinations-service.xml file. When the jboss is restarted, the queue/topic will be registered. i have to develop a tool to write to the jbossmq-destinations-service.xml. but until now i find in jboss version3.2.1, the location of jbossmq-destinations-service.xml is changed. i do not know what will happen in the future.
            as a distributed system using jboss, i also let the too administrate the durable subscription. but when a account is online, the tool can not do the durable subscription.

            • 3. Re: about subscription
              lian

              when the jboss restart, the queue/topic created by the mean will be lost. I wish it be written to the jbossmq-destinations-service.xml file. When the jboss is restarted, the queue/topic will be registered. i have to develop a tool to write to the jbossmq-destinations-service.xml. but until now i find in jboss version3.2.1, the location of jbossmq-destinations-service.xml is changed. i do not know what will happen in the future.
              as a distributed system using jboss, i also let the too administrate the durable subscription. but when a account is online, the tool can not do the durable subscription.

              • 4. Re: about subscription

                You don't have to use
                jbossmq-destinations-service.xml
                to configure queues/topics.

                You could maintain your own
                dynamic-destinations-service.xml
                in the deploy directory or even one per queue.
                MyQueue-service.xml

                You can get the deploy directory from the
                jboss.system:service=ServerInfo mbean.

                For the durable subscriptions, the best
                approach is to use the JMS api.
                The state manager will persist the subscription
                for you.

                Regards,
                Adrian

                • 5. Re: about subscription
                  lian

                  thanks for your help.
                  I think that is good idea to write my config informatin in seperate file.
                  can you tell me the format of the mean to write the topic, queue and connectionFactory or give me a file as an example .



                  • 6. Re: about subscription

                    It is the same format as
                    jbossmq-destinations-service.xml

                    Just copy it to something like
                    my-destinations-service.xml
                    and change it.

                    Regards,
                    Adrian