1 Reply Latest reply on Nov 3, 2001 1:03 AM by Hiram Chirino

    Question about durable subscription setup

    Hiram Chirino Expert

      Original post by : Brian Weaver <weave@opennms.org>


      Hi All,

      I've been trying to come up to speed on JBoss, espicially the MQ
      part of JBoss. To that end I've actually downloaded the source from
      CVS, built it, attempted to configure it, and made RPMs to install
      it for testing.

      The main problem I'm having right now it a lack of documentation.
      I'm working from the HEAD of the CVS tree and I cannot seem to get
      queue persistance working for some reason. I've gotten JBossMQ running
      and passing messages for both a queue and two topics, however the queue
      connection should be setup with persistance. I'm not seening anything
      written to the file system for the queue in the db directory or
      any of its subdirectories.

      I started trying to figure out the format of the jbossmq-state.xml
      file, and as best I can figure it has the following tag hierarchy:

      StateManager
      |
      - User
      |
      |- Name
      |- Password
      |- Id
      - DurableSubscription
      |
      |- Name
      - TopicName

      From the manual that I've read at
      http://www.jboss.org/online-manual/HTML/ch08s07.html
      I'm left in the dark about just what the fields are and/or how their used. For
      example
      if I create a user with a password, how do I pass that information to JBossMQ
      when
      opening a connection to the MQ server.

      And I'm really clueless about the DurableSubscription and child fields. I could
      probably
      figuer it out an a week or two by going through the code, but I'd prefer to keep
      testing
      my application, while learning jboss instead of having to do a mental context
      switch to
      JBossMQ and/or search for another MQ server.

      In Short.... "Help!"

      Thanks

      Weave

        • 1. Re: Question about durable subscription setup
          Hiram Chirino Expert

          > From the manual that I've read at
          > http://www.jboss.org/online-manual/HTML/ch08s07.html
          > I'm left in the dark about just what the fields are
          > and/or how their used. For
          > example
          > if I create a user with a password, how do I pass
          > that information to JBossMQ
          > when
          > opening a connection to the MQ server.
          >

          To connect the MQ server with a userid/password, you use the TopicConnectionFactory.createTopicConnection(String userid, String password) method.

          > And I'm really clueless about the DurableSubscription
          > and child fields. I could

          Once connected as a user id, he may have multiple durable subscriptions that map to different topics. So in otherwords, each user has his own mapping of subscription names to topics. So if the client sets up a new subscription, it will get added as a durable subscription entry under his userid. This is how we keep track of the fact that we need to store all the message on a topic for a specific user.

          Make senese???


          Regards,
          Hiram