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

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


anonymous wrote :  it would be nice to add this as a suggested solution to the JBMSpringJMSTemplateNotes page 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