4 Replies Latest reply on Apr 8, 2005 6:51 PM by apinto

    Automatic topic/queue creation

    apinto

      Hi there,

      We're using JBoss 3.2.6 and we have an MDB that listens in a remote JMS queue (configured with the resource adapter method). The problem is that when the network connection is lost between the machines where the JMS service and the MDB are, a "dummy" queue in created in the MDB side, preventing further message reception (when the network connection comes up).

      I knew that this was a characteristic of the MDB deployment (when the topic/queue doesn't exist, create one with the same name)... But what I really want to know is how to turn it off! Is there any configuration in the MDB deployment descriptior that I can tune in order to change this behaivour?

      Also, does anyone know how the container checks if the topic that "feeds" an MDB is online? Is it by pooling? If so, what's the default pooling interval and is there a way to change it?


      Thanks a lot in advance!

      Arménio Pinto

        • 1. Re: Automatic topic/queue creation
          starksm64

          As far as I know we never added such an option, but its needed so create a bug report in http://jira.jboss.com/jira/browse/JBAS

          The availability is determined by being able to lookup and connect to the destination.

          • 2. Re: Automatic topic/queue creation

            I've been meaning to change this for a while:
            http://jira.jboss.com/jira/browse/JBAS-1645

            • 3. Re: Automatic topic/queue creation
              apinto

              Scott, Adrian, thanks for que quick reply!

              As JBAS-1645 already covers the problem pretty well, I wont create a new bug report as suggested by Scott. :-)

              Is there any workaround we can take in order to prevent this situation in JBoss 3.2.6? We have that version in production environment and upgrading to 4.X it's something out os question. Also, JBoss 4.0.2, where the CreateJBossMQDestination option is supported, wasn't release yet!

              Thanks again,

              Arménio Pinto

              • 4. Re: Automatic topic/queue creation
                apinto

                We were trying to replicate the original problem in a test environment, but no "dummy" queue is created! Originally, we thought that the replacement queue was being created because of the connection loss, but removing the network cable from the machine where the MDB and the JMS proxy is running, caused nothing!

                Can anyone explain me what's happening? What can cause the MDB to create a replacement queue in runtime and without deployments/changes going on?

                Thanks,

                Arménio Pinto