6 Replies Latest reply on Sep 30, 2003 1:55 AM by adrian.brock

    Deleting then recreating a topic

    red_one

      http://pleasewipeyourfeet.com/red_one/jboss-funky

      I'm trying to delete a topic, then recreate it (so that old subscribers will get new messages)

      But why does creating it again fail (This destination has allready been added to the server!) even though it says Destroyed before?

        • 1. Re: Deleting then recreating a topic

          You cannot delete a Destination if you have active connections (i.e. clients) on it.

          Use search, someone asked that question last week

          Regards,

          Stephane

          • 2. Re: Deleting then recreating a topic
            red_one

            then why
            a) does it say 16:16:24,508 INFO [Fred] Destroyed
            b) does "Fred" not appear in the jboss.mq.destination list in the jmx-console?

            • 3. Re: Deleting then recreating a topic

              Excellent question. I am just reacting to the stack trace you provided us, that is

              16:16:24,506 ERROR [Fred] Destroying failed
              javax.jms.JMSException: The destination is being used.
              at org.jboss.mq.server.JMSDestinationManager.closeDestination(JMSDestinationManager.java:804)


              16:19:23,628 INFO [Fred] Starting
              16:19:23,628 ERROR [Fred] Starting failed
              javax.jms.JMSException: This destination has allready been added to the server!

              Regarding your questions:

              1/ I am sorry but the line below is:
              16:16:24,506 ERROR [Fred] Destroying failed

              2/ The destination is in an incosistent state, that is it has been unregister from the JMX domain but must probably it should still exists (again I cannot guess with part of the logs)

              Howerver, this might be a potential bug (the fact the destination has been removed from the jboss.mq.destination domain while still existing).

              Adrian might have more info regarding this, I am not part of the JBoss team.

              Regards,

              Stephane

              • 4. Re: Deleting then recreating a topic
                red_one

                Yeah, I know it says "ERROR [Fred] Destroying failed"
                but after the stacktrace it says..
                "INFO [Fred] Destroyed"

                So which is it?

                • 5. Re: Deleting then recreating a topic

                  It's destroying failed. I think there might be a potential bug here. Open a ticket on sourceforge.

                  Regards,

                  Stephane

                  • 6. Re: Deleting then recreating a topic

                    Undeploying the topic won't help.
                    Sure you will loose non-persistent messages,
                    but the persistent ones are still on disk.

                    There is a removeAllMessages on the topic mbean

                    Regards,
                    Adrian