Hi,  i would like to implement a transparent solution of caching so
that  developer doesn't need to redefine the route because caching is
a non-functional requirement.
After researching a while, i found
org.apache.servicemix.core.InternalEndpointWrapper that works as a
endpoint wrapper. can it be used for implementing  an endpoint
decorator?
For example, if i would like to cache exchange messages sent to an
http provider endpoint, i would have to define it as following in the
xbean file:

<bean class="..CacheWrapper" >
<property name="keyResolver" value="xpath://name" />
<property name="expirationPolicy" value="..." />
<property name="endpoint">

         <http:provider.../>
</property>
</bean>

where  caching logic is defined in process method.

should i take care for something else?

I wonder if it can be implemented as a servicemix broker  wrapper instead...

Thanks in advance


-- 

Lic. Mario Matias Urbita
[email protected]
www.fluxit.com.ar Calle 9 #865
La Plata / Buenos Aires / Argentina
+54 221 4831722 Int:308

Reply via email to