1 Reply Latest reply on Oct 10, 2003 2:57 PM by arabin

    How can I acknowledge this?

    arabin

      As far as I cannot set a listener to a TemporaryQueue, I do the following:
      I create a permanent queue through destination manager, attach a listener to it, catch the message onto that queue, and later want to destroy the queue via destination manager.

      In order to do that I send a message to MDV from inside the callback, that caught a message. The request to MDB invokes destination manager to destroy the queue. The queue is destroyed, the MDB answers back via TemporaryQueue back to callback, and that is it.

      However, what happens - when the callback is called, and MDB is called to destroy the queue via destination manager, I have the following exception :


      16:34:10,506 WARN [OILServerILService] Client request resulted in a server exce
      ption:
      javax.jms.InvalidDestinationException: The subscription's destination QUEUE.1065
      818050178 does not exist
      at org.jboss.mq.server.ClientConsumer.acknowledge(ClientConsumer.java:32
      6)
      at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationM
      anager.java:531)
      at org.jboss.mq.server.JMSDestinationManager.acknowledge(JMSDestinationM
      anager.java:515)
      at org.jboss.mq.server.JMSServerInterceptorSupport.acknowledge(JMSServer
      InterceptorSupport.java:197)
      at org.jboss.mq.server.TracingInterceptor.acknowledge(TracingInterceptor
      .java:405)
      at org.jboss.mq.server.JMSServerInvoker.acknowledge(JMSServerInvoker.jav
      a:199)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.
      java:249)
      at java.lang.Thread.run(Thread.java:536)


      Here the queue QUEUE.1065818050178 is the queue which received the message (via callback). And which was successfully destroyed via a call to MDB, which invoked destroyMessage method on destination manager.

      MDB never returned the response bacj to callback via temporary queue after that.

      How can I prevent this from happening?

        • 1. Re: How can I acknowledge this?
          arabin

          Immediately before that I have the following printout from destination manager :

          16:34:10,475 INFO [1065818050178] Stopping
          16:34:10,475 INFO [1065818050178] Stopped
          16:34:10,490 INFO [1065818050178] Destroying
          16:34:10,490 INFO [1065818050178] Destroyed