[Users] Petals Starting Guide - day 5 (EIP)

vzurczak vincent.zurczak at petalslink.com
Wed Mar 16 11:05:24 CET 2011


Hi,


hgerard wrote:
> Do you know if XPath test is possible with the SE EIP using the wire-tap pattern ?
> The need is simply to log the call of a method of a service and only this method.


No, this pattern does not support this use case alone.
To achieve it, you would need to:
	 Either use an interceptor.

	 Combine the wire-tap with a router EIP.

Petals interceptors imply Java coding and follow the JBI specification.
That's not convenient at all. IMO, Petals should define a second interception mechanism, in addition to the standard one, and that would be easier to use.

The use of two EIPs (with the router) is the most coherent approach (EIPs are intended to be used in chains).
With the EIP component 2.5, it is possible to route according to the invoked operation.
So, your chain would look like:

1. : Router EIP ( test = operation, described by WSDL 1 )
2.a : ( invoked operation = right one ) => Wire-Tap EIP
2.b : Invoke the target service ( described by WSDL 1 )
3.a : Invoke the target service ( described by WSDL 1 ) and the monitoring service




-------------------- m2f --------------------

Subscribe/Unsubscribe emails notifications :
http://forum.petalslink.com/m2f_usercp.php

Response to this email will be posted on the Petals forum.
Please delete the existing text before responding :)

Read the topic online:
http://forum.petalslink.com/viewtopic.php?p=31641#31641

-------------------- m2f --------------------






More information about the Users mailing list