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

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -