2 Replies Latest reply on Jul 24, 2013 5:03 PM by Tom Cunningham

    Setting Threads in Http Gateway

    tin hayes Newbie

      How do I set the number of threads in the Http Gateway listener within the JBoss ESB.  If I have the following:

        <service category="esbcat" description="gateway service"

         invmScope="GLOBAL" name="gtwhttp">


          <property name="maxThreads" value="100"/>


               <http-gateway name="http gateway listener async"/>


      will this set the max threads to 100 for the http-gateway or should it be like this:


        <service category="esbcat" description="gateway service"

         invmScope="GLOBAL" name="Hub">



          <http-gateway name="http gateway listener async">

            <property name="maxThreads" value="100"/>



      or something else entirely?  What if I am using a JMS listener and not using InVM?

      ESB version 4.10

        • 1. Re: Setting Threads in Http Gateway
          joe_boy12 Novice

          we did this way for INVM



          <service category="Chapter5Sample" description="Chapter5 B Service" invmScope="GLOBAL" name="Chapter5BService">
          <property name="maxThreads" value="5"/>
          <property name="inVMLockStep" value="true"/>
          <property name="inVMLockStepTimeout" value="4000"/>
          <actions mep="OneWay">
            <action class="org.jboss.soa.esb.samples.chapter5.MyAction" name="lockStepAction" process="lockStepAction"/>
            <action class="org.jboss.soa.esb.actions.SystemPrintln" name="printMessage">
             <property name="message" value="Incoming to B"/>


          and this way for JMS

                  <jms-listener name="my-jms-channel" busidref="MyGatewayChannel" is-gateway="true" maxThreads="5"/>
                  <jms-listener name="my-esb-channel" busidref="MyESBChannel" maxThreads="5"/>


          Never tried on what happens if gateway thread count is more than ESB thread count.

          1 of 1 people found this helpful
          • 2. Re: Setting Threads in Http Gateway
            Tom Cunningham Master

            This page has a pretty good summary of setting threads on listeners / HTTP Gateway.      Instead of setting a maxThreads property on the http-gateway, I think you need to set the maxThreads property on the Tomcat connector :