JBossESBPerformanceTuning

    1. InVM:

    The code snippet below shows how to configure your service using InVm transport:

            <service category="HelloWorld" name="Service1" description="Service 1" invmScope="GLOBAL">
                <listeners>
                    <!-- So we just need to define a Gateway to the service... -->
                    <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" is-gateway="true"></jms-listener>
                </listeners>
                <actions>
                    <action name="println" class="org.jboss.soa.esb.actions.SystemPrintln">
                        <property name="message" value=" - > Service 1"/>
                    </action>
    
                    <!-- Route to the "Service 2" -->
                    <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
                        <property name="destinations">
                            <route-to service-category="HelloWorld" service-name="Service2"></route-to>
                        </property>
                    </action>
                </actions>
            </service>
    

     

    2. Max threads for MessgeAwareListener.

    The default value is 1. Following example shows how to set the max threads number to 100:

    <services>
            <service category="MyServiceCategory" name="MyWSProducerService1" description="WS Frontend speaks
     natively to the ESB" invmScope="GLOBAL">
                <property name="maxThreads">100</property>
                <listeners>
                      <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true" maxThreads="1"></jbr-listener>
                 </listeners>
                <actions>
                    <action name="println" class="org.jboss.soa.esb.actions.SystemPrintln">
                        <property name="message" value=" - > Service 1"/>
                    </action>
                </actions>
            </service>
    </services>
    

     

    3. Max threads for jbr listener.

    The default number is 50. Following example shows how to set the max threads number to 100:

    <services>
            <service category="MyServiceCategory" name="MyWSProducerService1" description="WS Frontend speaks 
    natively to the ESB" invmScope="GLOBAL">
              <listeners>
               <jbr-listener name="Http-Gateway" busidref="Http-1" is-gateway="true">
                   <property name="jbr-maxThreads" value="100"></property>
               </jbr-listener>
              </listeners> 
                <actions>
                    <action name="println" class="org.jboss.soa.esb.actions.SystemPrintln">
                        <property name="message" value=" - > Service 1"/>
                    </action>
                </actions>
            </service>
    </services>