0 Replies Latest reply on Mar 26, 2008 10:48 AM by Luc DEW

    FS-listener two-way configuration

    Luc DEW Newbie

      Hi,

      i have a question regarding file listener and providers. Actually, after having a look at the bpm_orchestration sample application, i am wondering how i should configure my JbossESB application.

      I need a two-way gateway file listener. When an exception is thrown from the action pipeline, the input file should be renamed with error extension defined for the provider tied to the gateway and that's it. I am unable to achieve this.

      What i don't understand is how Jboss ESB deals with both a gateway file listener and an ESB aware one .

      In the sample application, 2 fs-providers are configured and tied to the same service with different input files. How should i configure them to perform what i need to achieve ?

      In my action pipeline when an exception is thrown (not of type ActionProcessingFaultException), the service is invoked multiple times for the same message. When I throw an ActionProcessingException a .xml_reply_gw file is generated and the service is invoked just 1 time.


       <fs-bus busid="startGwChannel" >
       <fs-message-filter
       directory="@INPUT_DIR@"
       input-suffix=".startProcessGW"
       work-suffix=".startProcessGWWorking"
       post-delete="true"
       error-delete="true"
       />
       </fs-bus>
       <fs-bus busid="startEsbChannel" >
       <fs-message-filter
       directory="@INPUT_DIR@"
       input-suffix=".startProcessESB"
       post-delete="true"
       error-delete="true"
       />
       </fs-bus>
      
      ...
      
       <service category="BPM_Orchestration_Starter_Service" name="Starter_Service"
       description="BPM Orchestration Sample 1: Use this service to start a process instance">
       <listeners>
       <fs-listener name="Gateway" busidref="startGwChannel"
       maxThreads="4"
       is-gateway="true" />
       <fs-listener name="ESB-Listener" busidref="startEsbChannel"
       maxThreads="1"/>
       </listeners>