|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS Connection Pooling |
« View previous topic :: View next topic » |
Author |
Message
|
fsapienza |
Posted: Fri Dec 02, 2005 6:43 am Post subject: JMS Connection Pooling |
|
|
Novice
Joined: 11 Nov 2005 Posts: 10
|
Hi all!
Using JMS objects, when I create and then start a connection with instructions like:
queueConnection = queueConnectionFactory.createQueueConnection();
queueConnection.start();
am I creating a _real_ new connection or not? Because of a connection is a relatively heavyweight object I'd prefer to implement a connection pooling: is it possible?
Thanks, ciao. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 02, 2005 6:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It depends on where you got the QCF from. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fsapienza |
Posted: Fri Dec 02, 2005 7:06 am Post subject: |
|
|
Novice
Joined: 11 Nov 2005 Posts: 10
|
I'm using IBM WebSphere Application Server, and I have set QCF's connection pool properties in the administrative console: is it enough? |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 02, 2005 7:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Yes. If you're looking it up from JNDI in WAS, then WAS has implemented a connection pool for you, and the connections are established at server startup time and the "createConnection" method merely retrieves a connection from the pool.
If a container doesn't do this kind of thing for you, then why use a container at all? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|