Announcement Announcement Module
Collapse
No announcement yet.
Injecting Sessions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Injecting Sessions

    I have a requirement to inject a shared JMS Session, that needs to be used for the JMS message transfers. But I could not see any public setSession() method on JMS tempate. Is there a way I can achieve this? Essentially I should be able to dictate the session that gets used on the MessageCreator and things!

    thanks and regards,
    pankaj

  • #2
    JmsTemplate is a fairly simple helper class; why not just use the JMS Session API directly if its not doing what you need?

    Comment


    • #3
      Originally posted by jstrachan
      JmsTemplate is a fairly simple helper class; why not just use the JMS Session API directly if its not doing what you need?
      I agree on that. One major point of using JmsTemplate is, that you do not have to care about session handling. So if you _need_ to handle the session yourself then dispense with JmsTemplate.

      Regards,
      Andreas

      Comment

      Working...
      X