Mukus
Mukus

Reputation: 5033

What are the differences between ThroughputConnectionFactory, ConnectionFactory, XAConnectionFactory and XAConnectionThroughputConnectionFactory

I am looking at using HornetQ as the Messaging Provider. I'd like to know what connection factory is suitable for what behavior/solution?

Upvotes: 0

Views: 433

Answers (1)

Petter Nordlander
Petter Nordlander

Reputation: 22279

The connectionfactory is the base one. Specifically, javax.jms.ConnectionFactory is the java interface for JMS connection factories.

As it says in the documentation, HornetQ User Guide, Performance Tuning, you could use the pre configured ThroughputConnectionFactory for a tuned in CF for heavy load of small messages.

The XA ones are just prepared for global transactions through JTA when running inside JBoss AS. So you should go for these if you use multi resource transactions (such as Queue <-> DB transactions).

Upvotes: 1

Related Questions