5 Replies Latest reply on Jan 9, 2008 8:54 PM by Mark Little

    Courier, replyTo, FaultTo questions

    Vinicius Carvalho Apprentice

      Hi there, just a few easy ones ;)

      From what I've understand the courier is the responsible to handle the message across the action pipeline right? Is it possible to increase it's timeout? I'm getting some error messages at the console, complaining that it was not possible to sync/async deliver the message to endpoint. This is because I have some actions that *really* consume a lot of time (we depend on external systems sometimes, and those might take up to 30 seconds to respond)

      Bellow is a sample of my jboss-esb.xml:

      <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.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.0.1.xsd jbossesb-1.0.1.xsd ">
      <providers>
       <jms-provider name="jmsProvider" connection-factory="ConnectionFactory"
       jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
       jndi-URL="localhost">
       <jms-bus busid="CSMGateway">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/CSMInboundQueue"/>
       </jms-bus>
       <jms-bus busid="ESBChannel">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/ESBChannel"/>
       </jms-bus>
       <jms-bus busid="CadastroCliente">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/CadastroClienteQueue_internal"/>
       </jms-bus>
       <jms-bus busid="RemocaoCliente">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/RemocaoClienteQueue_internal"/>
       </jms-bus>
       <jms-bus busid="ReservaIP">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/ReservaIPQueue_internal"/>
       </jms-bus>
       <jms-bus busid="CadastroCPE">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/CadastroCPEQueue_internal"/>
       </jms-bus>
       <jms-bus busid="RemocaoCPE">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/RemocaoCPEQueue_internal"/>
       </jms-bus>
      
       </jms-provider>
      
       <jbr-provider name="JBR-Http" protocol="http" host="localhost">
       <jbr-bus busid="Http-1" port="8865" />
       </jbr-provider>
       <jbr-provider name="JBR-Socket" protocol="socket" host="localhost">
       <jbr-bus busid="Socket-1" port="8788" />
       </jbr-provider>
      
      </providers>
      <services>
      <service name="CSMInboudService" description="Servico de entrada do CSM" category="InboundServices">
       <listeners>
       <jms-listener name="inboundListener" busidref="CSMGateway" is-gateway="true" maxThreads="1"/>
       <jms-listener name="JMS-ESB-Listener" busidref="ESBChannel" is-gateway="false" maxThreads="1">
       </jms-listener>
       </listeners>
       <actions mep="RequestResponse">
       <action name="print-before" class="org.jboss.soa.esb.actions.SystemPrintln">
       <property name="message"
       value="contents"/>
       </action>
       <action name="CallEJB" class="com.synos.csm.business.actions.EjbCallerAction" process="callEJB"></action>
      
       <action name="ContentBasedRouter" class="org.jboss.soa.esb.actions.ContentBasedRouter">
       <property name="ruleSet" value="contentRouter.drl"/>
       <property name="ruleLanguage" value="NamespaceXpath.dsl"/>
       <property name="ruleReload" value="true"/>
       <property name="destinations">
       <route-to destination-name="CadastroCliente" service-category="Cliente" service-name="ClienteService"/>
       <route-to destination-name="RemocaoCliente" service-category="Cliente" service-name="ClienteService"/>
       <route-to destination-name="CadastroCPE" service-category="CPE" service-name="CPEService"/>
       <route-to destination-name="RemocaoCPE" service-category="CPE" service-name="CPEService"/>
       <route-to destination-name="ReservaIP" service-category="ReservaIP" service-name="ReservaIPService"/>
       </property>
      
       </action>
       </actions>
      </service>
      


      The replyTo of my message is set to null, shouldn't it be pointing to my ESBChannel_reply queue? I'm setting it manually right now, in my first action its no big deal, just trying to understand why is it null.

      Best Regards