spring data - int-jpa:retrieving-outbound-gateway and caching the result -
is possible cache result of jap retriving oubound gateway(int-jpa:retrieving-outbound-gateway). every time query not executed if result available in cache?
the solution existing code base may like:
<transformer input-channel="input" ref="testbean" method="uppercase" output-channel="output"> <request-handler-advice-chain> <cache:advice> <cache:caching cache="foo"> <cache:cacheable method="handle*message" key="#a0.payload"/> </cache:caching> </cache:advice> </request-handler-advice-chain> </transformer>
it <transformer>
here, same applied jpa gateway well.
pay attention method="handle*message"
aop path. plus key
expression based on message
a0
cacheable
advice argument.
that's may why still don't support out-of-the box component in spring integration. pretty simple , straightforward solution.
Comments
Post a Comment