Results 1 to 3 of 3

Thread: Injecting Sessions

  1. #1
    Join Date
    Mar 2006
    Posts
    5

    Default 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. #2
    Join Date
    Aug 2004
    Location
    London
    Posts
    164

    Default

    JmsTemplate is a fairly simple helper class; why not just use the JMS Session API directly if its not doing what you need?
    James Strachan
    ------------------
    Open Source Integration
    Iona

  3. #3
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Quote 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •