1 Reply Latest reply on May 30, 2002 8:47 AM by Hiram Chirino

    Topic creation changed from RC2 to RC3

    Jordan Zommick Newbie

      My code worked in JBoss 3RC2 to create temporary topics that can be used by everyone; however, it no longer works in RC3 because there is no longer a 'Server' object in the jboss.mq. So, how do I create a temporary topic for use in all sessions now?

      private void createTopic(String topicName) {
      try {

      // Get the MBean server
      MBeanServer server = (MBeanServer)

      // Invoke the MBean
      server.invoke(new ObjectName("jboss.mq", "service", "Server"),
      new Object[] { topicName },
      new String[] { "java.lang.String" });

      } catch (Exception e) {
      System.out.println("Unable to create topic " + topicName + ": " + e.toString());