2 Replies Latest reply on Apr 18, 2007 8:55 PM by burrsutter

    Modified Helloworld with Topic does not work!

    goldi

      Hi everybody,

      I want to run the "helloworld" example with a topic but i don't get to work. My configuration in the jbossesbb.xml is as follows:

      <providers>
       <jms-provider name="JBossMQ" connection-factory="ConnectionFactory" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost">
       <jms-bus busid="quickstartGwChannel">
       <jms-message-filter dest-type="TOPIC" dest-name="topic/myTopic"/>
       </jms-bus>
       <jms-bus busid="quickstartEsbChannel">
       <jms-message-filter dest-type="TOPIC" dest-name="topic/myTopic"/>
       </jms-bus>
       </jms-provider>
       </providers>
       <services>
       <service category="FirstServiceESB" name="SimpleListener" description="Hello World">
       <listeners>
       <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" maxThreads="1" is-gateway="true"/>
       <jms-listener name="helloWorld" busidref="quickstartEsbChannel" maxThreads="1"/>
       </listeners>
       <actions>
       <action name="action1" class="quickstart.helloworld.MyJMSListenerAction" process="displayMessage"/>
       </actions>
       </service>
       </services>


      In the jbossmq-destinations-service.xml I configured the topic:
      <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>
       </mbean>



      I get the following exception:

      Caused by: java.lang.ClassCastException: org.jboss.mq.SpyTopic
      at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.prepareMessageReceiver(JmsGatewayListener.java:385)
      at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:115)
      at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(AbstractManagedLifecycle.java:120)
      ... 5 more


      Can someone help?


      Greets Goldi