1 Reply Latest reply on Jan 29, 2014 10:18 AM by Tom Cunningham

    ServiceInvoker's deliverAsync not working as expected

    Ankit Gaur Newbie

      Hi,

       

      I am calling ServiceInvoker's deliverAsync inside a for loop in following manner :-

       

      si = new ServiceInvoker("depositAccountService",  "DepositAccountService");

        si.deliverAsync(message);

       

      Expectation is to call this service asynchronously. Request to be sent without waiting for response. Service should work in a multithreaded manner.

       

      If it recieves 2 requests it should process them simultaneously. Somehow this is not happening. Please find below the service definition in jboss-esb.xml.

       

      Please let me know if i am missing out anything :-

       

      <service name="DepositAccountService" description="AccountInfo - OLB Account Service"

        category="depositAccountService"   invmScope="GLOBAL">

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

       

       

        <actions mep="OneWay">

       

        <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">

                            <property name="message" value="PROFILER: Request recieved" />

                        </action>

        <action name="get_lgq_payments_request_aggregator_checkpoint"

        class="com.soa.actions.EsbAggregatorCheckpoint">

        <property name="springContextXml" value="/spring-config/applicationContext.xml" />

        <property name="requestResponseFlag" value="request" />

        </action>

       

       

        <action name="accountinfo_soap_proxy" class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">

        <property name="wsdl"

        value="https://abcdserver:8888/contract/wsdl?wsdl" />

        <property name="endpointUrl"

        value="https://abcdserver:8888/contract/wsdl" />

        <property name="file" value="/META-INF/accountinfo.properties" />

        <property name="clientCredentialsRequired" value="false" />

        </action>

       

       

       

       

        <action name="get_lgq_payments_call_response_aggregator_checkpoint"

        class="com.soa.actions.EsbAggregatorCheckpoint">

        <property name="springContextXml" value="/spring-config/applicationContext.xml" />

        <property name="requestResponseFlag" value="response" />

        <property name="cancel-service-category" value="cancelService" />

        <property name="cancel-service-name" value="CancelService" />

        </action>

       

       

       

        <action name="accountinfo_static_router" class="org.jboss.soa.esb.actions.StaticRouter">

        <property name="destinations">

        <route-to service-category="Aggregation" service-name="AggregratorService" />

        </property>

        </action>

        </actions>

        </service>