2 Replies Latest reply on Oct 31, 2003 5:35 PM by adrian.brock

    How to setup queue by both name and jndi name on startup?

    arabin

      When I want to have Jboss create a Queue testQueue upon startup, I just put the code like this into the file
      jbossmq-destinations-service.xml


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









      Here I use method createQueue of DestinationManager, that takes just queueName only, and constructs jndiName =

      queue/QueueName

      Is there any way to use another interface to DestinationManager, that uses both values - queueName and jndiName,

      something like the following?


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