This content has been marked as final.
Show 5 replies
-
1. Re: Spring JmsTemplate questions
clebert.suconic Jul 21, 2008 4:17 PM (in response to theoverlord)
The problem with JMSTemplate on Spring is about the session.
Spring will create a JMSSession on every send:
session = conn.createSession(....);
....
producer = session.createProducer...
producer.send(....)
And those are expensive operations *on any* messaging system (as far as I know). -
2. Re: Spring JmsTemplate questions
theoverlord Jul 21, 2008 7:12 PM (in response to theoverlord)According to the JBoss Wiki relating to JmsTemplate, it's safe to use JmsTemplate so long as it's used in a Jboss AS when using the connection factory from "java:/JmsXA".
-
3. Re: Spring JmsTemplate questions
clebert.suconic Jul 21, 2008 7:41 PM (in response to theoverlord)According to the JBoss Wiki relating to JmsTemplate, it's safe to use JmsTemplate so long as it's used in a Jboss AS when using the connection factory from "java:/JmsXA".
I assumed you knew that...
I'm just saying why you need to ensure you use java:/JmsXA. -
4. Re: Spring JmsTemplate questions
theoverlord Jul 21, 2008 8:08 PM (in response to theoverlord)Even though it's safe to use the JmsTemplate in some specific cases, are you saying it may not be the most efficient in those cases?
-
5. Re: Spring JmsTemplate questions
timfox Jul 22, 2008 12:55 AM (in response to theoverlord)"TheOverlord" wrote:
According to the JBoss Wiki relating to JmsTemplate, it's safe to use JmsTemplate so long as it's used in a Jboss AS when using the connection factory from "java:/JmsXA".
And even then, it's only safe for sending messages, not consuming them.