1 Reply Latest reply on Feb 13, 2004 10:11 AM by Scott Stark

    How to create topic name w/o topic/ ?

    Katsuhiko Fujii Newbie

      Hi,

      I'm using JBOSS-3.2.3, only JBossMQ part for my purpose.
      I purchased the "Administration and Development" book but I couldn't
      find the answer in it.

      I'm looking for a way to set up my jbossmq-destinations-service.xml not
      to add "topic/" in JNDI name in front of topic name.
      I can do it with jmx-console, but I want to do it with modifiying xml file,
      and want server to do it automatically when starting up.

      Does anyone have a good idea?

        • 1. Re: How to create topic name w/o topic/ ?
          Scott Stark Master

          By adding a JNDIName attribute to the destination definition:

          < mbean code="org.jboss.mq.server.jmx.Topic"
          name="jboss.mq.destination:service=Topic,name=testTopic">
          < attribute name="JNDIName">TheTestTopic
          ...

          results in the name not being under topic:

          ...
          07:51:35,340 INFO [testTopic] Bound to JNDI name: TheTestTopic
          07:51:35,340 INFO [testTopic] Started jboss.mq.destination:service=Topic,name=testTopic