JBoss Community

How to control message in/out of a service ?

created by lee du in JBoss ESB Development - View the full discussion

Hi everyone,

 

I'm using jbossesb 4.10. I want to log the message in/out of a service to database.

As below ex:

     My actions chain has 3 actions but I want to log the message IN the first action & message OUT of the last action in action pipeline.

     I'm thinking about custom listener...to do this. Does any one know the best solution ?  Please tell me ! Thanks,

 

<service category="cat" description="" name="myService">

   <listeners>

    <http-gateway busidref="HttpChannel" name="myGw" payloadAs="STRING" urlPattern="/XXXXX/*"/>

    <jms-listener busidref="EsbChannel" is-gateway="false" name="myListener"/>

   </listeners>

   <actions mep="RequestResponse">

    <action class="com.XXX.esb.actions.MyAction"  name="Action1" process="processAction1"/>

    <action class="com.XXX.esb.actions.MyAction"  name="Action2" process="processAction2"/>

    <action class="com.XXX.esb.actions.MyAction"  name="Action3" process="processAction3"/>

   </actions>

  </service>

Reply to this message by going to Community

Start a new discussion in JBoss ESB Development at Community