2 Replies Latest reply: Aug 27, 2012 1:59 AM by René van Wijk RSS

    JBoss ESB- HornetQ jms provider in place of JBoss Messaging jms provider

    901090
      Hi,

      I have created esb project in which I used JBoss messaing JMS provider.
      Below is the directory structure of files inside esbcontent folder:

      For JBoss Messaging JMS provider:
      esbcontent-
      lib
      META-INF-- deployment.xml
      jboss-esb.xml
      jbm-queue-service.xml


      Now after some googleing, I am trying as below for HornetQ JMS provider for esb project.

      For HornetQ JMS provider:
      esbcontent-
      lib
      META-INF-- deployment.xml
      jboss-esb.xml
      hornetq-jms.xml



      deployment.xml:

      <jbossesb-deployment>
      <depends>jboss.esb:deployment=jbossesb.esb</depends>
      <depends>jboss.esb:service=JbpmService</depends>
      </jbossesb-deployment>


      jboss-esb.xml:

      <?xml version = "1.0" encoding = "UTF-8"?>
      <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.1.0.xsd" >

      <providers>
      <jms-provider name="" connection-factory="ConnectionFactory">
      <jms-bus busid="quickstartGwChannel">
      <jms-message-filter dest-type="QUEUE" dest-name="queue/requestAdd_gw"/>
      </jms-bus>
      <jms-bus busid="quickstartEsbChannel">
      <jms-message-filter dest-type="QUEUE" dest-name="queue/requestAdd_esb"/>
      </jms-bus>
      <jms-bus busid="quickstartChannel">
      <jms-message-filter dest-type="QUEUE" dest-name="queue/responseAdd"/>
      </jms-bus>
      </jms-provider>
      </providers>

      <services>
      <service category="FirstServiceESB" name="SimpleListener" description="Hello World">
      <listeners>
      <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" is-gateway="true"/>
      <jms-listener name="helloWorld" busidref="quickstartEsbChannel"/>
      </listeners>
      <actions mep="OneWay">
      <action name="action1" class="com.kvantum.AddJMSListenerAction" process="evaluate"/>
      </actions>
      </service>
      </services>

      </jbossesb>


      hornetq-jms.xml:


      <configuration xmlns="urn:hornetq" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
      <connection-factory name="NettyConnectionFactory">
      <connectors>
      <connector-ref connector-name="netty"/>
      </connectors>
      <entries>
      <entry name="/ConnectionFactory"/>
      <entry name="/XAConnectionFactory"/>
      </entries>
      </connection-factory>
      <connection-factory name="InVMConnectionFactory">
      <connectors>
      <connector-ref connector-name="in-vm"/>
      </connectors>
      <entries>
      <entry name="java:/ConnectionFactory"/>
      <entry name="java:/XAConnectionFactory"/>
      </entries>
      </connection-factory>
      <queue name="requestAdd_esb">
      <entry name="/queue/requestAdd_esb"/>
      </queue>
      <queue name="requestAdd_gw">
      <entry name="/queue/requestAdd_gw"/>
      </queue>
      <queue name="responseAdd">
      <entry name="/queue/responseAdd"/>
      </queue>
      </configuration>




      I got some deployment error when I deployed my esb project into jbossesb-server-4.9 and below is the server console:

      Server console:

      scanner has started]
      16:16:52,890 INFO [JBoss4ESBDeployer] create esb service, slsb.esb
      16:16:52,923 INFO [JBoss4ESBDeployer] create esb service, smooks.esb
      16:16:53,476 INFO [JBoss4ESBDeployer] create esb service, soap.esb
      16:16:55,485 INFO [JBoss4ESBDeployer] create esb service, spring.esb
      16:16:55,499 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.esb:deployment=KvantumESB.esb
      State: FAILED
      Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexp
      ected JMS error from prepareMessageReceiver
      I Depend On:
      jboss.esb:service=JbpmService
      jboss.esb:deployment=jbossesb.esb

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.esb:deployment=KvantumESB.esb
      State: FAILED
      Reason: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexp
      ected JMS error from prepareMessageReceiver
      I Depend On:
      jboss.esb:service=JbpmService
      jboss.esb:deployment=jbossesb.esb


      16:16:55,612 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
      080
      16:16:55,633 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      16:16:55,647 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBos
      s_4_2_3_GA date=200807181417)] Started in 33s:536ms



      Please help me to use HornetQ JMS provider for esb project!
      Any suggestions are highly appreciated.


      Regards,
      Shobhit Singh

      Edited by: 898087 on Dec 15, 2011 3:17 AM