3 Replies Latest reply on Mar 28, 2013 3:29 PM by petal1

    Getting error javax.naming.NameNotFoundException: topic not bound

    petal1

      Hello,

       

      I am migrating JBoss4.0.4.GA to JBoss6.0.0.Final. In JBoss 4.0.4.GA I had a topic defined in server/default/deploy/jms/myt-jms-service.xml as:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <server>

        <mbean code="org.jboss.mq.server.jmx.Topic"

           name="jboss.mq.destination:service=Topic,name=MyTopic">

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

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

        </mbean>

      </server>

       

      On my JBoss6.0.0.Final machine, I have put the following in server/default/deploy/hornetq/myt-hornetq-jms-service.xml:

       

      <configuration xmlns="urn:hornetq"

                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                     xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">

          <topic name="MyTopic">

              <entry name="/topic/MyTopic"/>

          </topic>

      </configuration>

       

      I have an application running on the same machine that looks up the topic on localhost 1099 with name "topic/MyTopic" and it is getting the error:

      javax.naming.NameNotFoundException: topic not bound

       

      Could someone please help me identify the issue.

       

      Thanks,

      Paul