1 Reply Latest reply on Jul 31, 2002 5:29 AM by Anitha Anitha

    JMS setup of new topics.

    Scott Newbie

      Hello -

      In http://www.jboss.org/online-manual/HTML/ch06s07.html

      It says -
      [2.4.1. Follow the link to Service=Server under JBossMQ and fill in either the form field createTopic or the form field createQueue.]
      I cannot find Service=Server.

      I have tried editing the jms-service files and the result is -
      javax.naming.NameNotFoundException: chat not bound
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
      at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
      at sun.rmi.server.UnicastRef.invoke(Unknown Source

      my code is the following -

      // Populate with needed properties
      Properties props = new Properties();
      props.put(Context.PROVIDER_URL, "localhost:1099");
      props.put("java.naming.rmi.security.manager", "yes");
      props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming");

      InitialContext context = new InitialContext(props);

      // Lookup a JMS connection factory
      // Get the connection factory
      TopicConnectionFactory topicFactory =

      // Create a JMS connection
      topicConnection =

      // Create a JMS session object
      TopicSession pubSession =
      TopicSession subSession =

      // Lookup a JMS topic
      Topic chatTopic = (Topic)context.lookup("topic/"+topicName);

      // Create a JMS publisher and subscriber
      TopicPublisher publisher =
      TopicSubscriber subscriber =

      // Set a JMS message listener

      // Intialize the Chat application
      set(topicConnection, pubSession, subSession, publisher, username);

      // Start the JMS connection; allows messages to be delivered

      Thank you for you help,

        • 1. Re: JMS setup of new topics.
          Anitha Anitha Newbie

          To Setup a new Topic

          For Jboss-3.0.0alpha : Edit the jbossmq-service.xml in /deploy folder of your jboss installation.

          Add the following mbean tag in this file .

          <mbean-ref name="JBossMQService">JBossMQ:service=Server</mbean-ref>

          Note: mytopicname is user defined name, and a client need to lookup with this topic name.

          For Jboss-3.0.0_tomcat-4.0.3: Edit jbossmq-destination-service.xml found in
          Server/default/deploy folder of your Jboss installation.

          Add the following mbean tag in this file .

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

          Note: mytopicname is user defined name, and a client need to lookup with this topic name.

          Hope this helps ...!!

          IIMS-New Zealand