[jboss-user] [JBoss Messaging] - Re: JmsTemplate w/ JBM still discouraged?

clebert.suconic@jboss.com do-not-reply at jboss.com
Thu Oct 9 16:44:48 EDT 2008


The problem on SpringJMSTemplate would be the same on any JMS server you choose.

anonymous wrote :  that warns against using JmsTemplate with JBoss Messaging. 

This should be the same on any JMS provider you choose. Creating a Session/Producer on every message send is an anti-pattern , and it will certainly cause performance issues on any JMS server you choose.

You can use the java://JmsXA connector on JBoss AS also, and on that case SpringJMSTemplate would be using the cached producers from JBAS' JCA and you wouldn't see any performance problem.

(But if you have a standalone client, you won't have the JCA adaptor available)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181331#4181331

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181331



More information about the jboss-user mailing list