camel route security and caching using apache camel-shiro component -


i have implemented route-security using camel-shiro , shiro's jdbcrealm. enabled shiro caching. can please advise how can leverage shiro access subject's details database once, cache details , access subject's details subsequently cache.

below example of achieve:

<route id="shirodemosecurityrestroute"> <from uri="cxfrs://bean://shirosecuritydemorestserver" /> <policy ref="shirosecuritypolicy1"><!-- access subject's details database , persist in cache   -->     <log message="doing here... set nextdestination xml webservice or json webservice" />     <choice>         <when>             <simple>${in.header.nextdestination} == 'xml'</simple>             <policy ref="shirosecuritydemoxmlpolicy"><!--   access subject's details cache -->                 <log message="xml request in process" />             </policy>         </when>         <when>             <simple>${in.header.nextdestination} == 'json'</simple>             <policy ref="shirosecuritydemojsonpolicy"><!--  access subject's details cache -->                 <log message="json request in process" />             </policy>         </when>     </choice> </policy>    </route> 


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -