2 Replies Latest reply on Feb 12, 2005 10:01 AM by Andrej Tibaut

    Runtime JMS queue creation

    Andrej Tibaut Newbie

      I have read the JMS documentation but although haven't found the possibility to do the following...
      I have N standalone clients that asinchronously send JMS messages to a MDB (JBoss app server). All messages are sent to a single incoming queue, specified in the file jbossmq-myqueues-service.xml from default/deploy map:

      <mbean code="org.jboss.mq.server.jmx.Queue"
       name="jboss.mq.destination:service=Queue,name=avrisQueuePrevoznik2Centrala">
       <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
       </mbean>


      MDB should reply to each incoming message from client (for confirmation purposes).
      Therefore clients use setJMSReplyTo method to inform MDB about the reply-to queue. Here is my problem!
      I want to dynamically generate these reply queues, I don't want them permanently specified on JBoss. I also don't want the pub/sub model because I don't need the overhead (each client gets all messages).

      What is the best pattern to do this?

      AndrejT