Advertisement
Guest User

Untitled

a guest
Oct 5th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. <!-- Inbound channel adapter for polling the database -->
  2. <int-jdbc:inbound-channel-adapter id="datachannel"
  3. query="customized query"
  4. data-source="dbDataSource" max-rows-per-poll="1" row-mapper="datamapper"
  5. update="customized query">
  6. <int:poller fixed-rate="${interval}">
  7. <int:transactional/>
  8. </int:poller>
  9.  
  10. </int-jdbc:inbound-channel-adapter>
  11. <int:service-activator input-channel="datachannel"
  12. output-channel="executechannel" ref="Myservice" method="getRecord">
  13. </int:service-activator>
  14.  
  15. public class Myservice{
  16. ..........
  17. ..........
  18. @Context HttpServletRequest httpServletRequest;
  19.  
  20. public DataBO getRecord(DataBO dataBO){
  21. HttpSession httpSession = httpServletRequest.getSession(true);
  22. String jsessionId = httpSession.getId();
  23. ....................
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement