Mar 6th, 2006, 05:11 AM
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,
Mar 6th, 2006, 05:53 AM
JmsTemplate is a fairly simple helper class; why not just use the JMS Session API directly if its not doing what you need?
Mar 6th, 2006, 06:25 AM
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.
Originally Posted by jstrachan