Multiple gateway listeners for a single service don't work in JBoss SOA-P

Solution Verified - Updated -

Issue

  • For our requirement I tried having multiple gateway listeners to a single service?
  • Webservice contract is working only when there is only esb listener available. When I add any gateway listener it's (all interfaces HTTP,JMS and WS)failing.
  • Our jboss-esb.xml:
<?xml version="1.0"?>
<jbossesb parameterReloadSecs="5"
 xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd">
 <globals>
  <war-security domain="JBossWS" method="BASIC"/>
 </globals>
 <providers>
  <jms-provider connection-factory="ConnectionFactory" name="JBossMQ">
   <jms-bus busid="quickstartEsbChannel">
    <jms-message-filter
     dest-name="queue/quickstart_publish_as_webservice_Request_esb"
     dest-type="QUEUE" selector="serviceName='HelloWorldPubService'"/>
   </jms-bus>
  </jms-provider>
  <http-provider name="http">
   <http-bus busid="hw_http_gw"/>
  </http-provider>
 </providers>
 <services>
  <service category="ESBServiceSample"
   description="Hello world ESB Service" name="HelloWorldPubService">
   <!--
   <security moduleName="JBossWS"/>
   -->
   <listeners>
    <http-gateway busidref="hw_http_gw" name="httpL" urlPattern="paws/*"/>
    <jms-listener busidref="quickstartEsbChannel" is-gateway="true" name="jms"/>
    <jms-listener busidref="quickstartEsbChannel" is-gateway="false"
     maxThreads="1" name="helloWorld"/>
   </listeners>
   <actions faultXsd="/fault.xsd" inXsd="/request.xsd"
    mep="RequestResponse" outXsd="/response.xsd" validate="true" webservice="true">
    <action class="org.jboss.soa.esb.actions.SystemPrintln" name="displayMessage">
     <property name="message" value="HelloWorldPubService invoked"/>
     <property name="printfull" value="true"/>
    </action>
    <action
     class="org.jboss.soa.esb.samples.quickstart.publishAsWebservice.ESBWSListenerAction"
     name="action" process="displayMessage"/>
    <action class="org.jboss.soa.esb.actions.SystemPrintln" name="displayMessage2">
     <property name="message" value="HelloWorldPubService processed"/>
     <property name="printfull" value="true"/>
    </action>
   </actions>
  </service>
 </services>
</jbossesb>

Environment

  • JBoss Enterprise SOA Platform (SOA-P)
    • 5.0.0.GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content