Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- Inbound channel adapter for polling the database -->
- <int-jdbc:inbound-channel-adapter id="datachannel"
- query="customized query"
- data-source="dbDataSource" max-rows-per-poll="1" row-mapper="datamapper"
- update="customized query">
- <int:poller fixed-rate="${interval}">
- <int:transactional/>
- </int:poller>
- </int-jdbc:inbound-channel-adapter>
- <int:service-activator input-channel="datachannel"
- output-channel="executechannel" ref="Myservice" method="getRecord">
- </int:service-activator>
- public class Myservice{
- ..........
- ..........
- @Context HttpServletRequest httpServletRequest;
- public DataBO getRecord(DataBO dataBO){
- HttpSession httpSession = httpServletRequest.getSession(true);
- String jsessionId = httpSession.getId();
- ....................
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement