2 Replies Latest reply on Aug 12, 2004 12:30 AM by lbtanjitha

    Creating queues at run time (within the java program)

    lbtanjitha

      Hi,
      I'm writing a JMS application which needs to create queues at run time. This mean I have wrote a program to get a name of the queue as a input from the user. Because My application needs to deal with lot of queues and need to create these at run time. But to create a queue in JbossMQ we need to put an entry in the JBOSS_HOME\server\default\deploy\jms\jbossmq-destinations-service.xml
      as follows.


      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager


      Also I'm deploying jar in Jboss, therefore i have to enter a entry in jboss.xml as follows

      -
      - <enterprise-beans>
      - <message-driven>
      <ejb-name>MessageBean</ejb-name>
      <configuration-name>Standard Message Driven Bean</configuration-name>
      <destination-jndi-name>queue/thilina</destination-jndi-name>
      </message-driven>
      </enterprise-beans>


      So.. creating queues dynamically is a dificult task in this case. So any other way to achieve this task like createQueue() or createTemporaryQueue() kind of methods exixts ? Then how can I achieve this task?

      Thanks in advanced
      Thilina