ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Connection Pooling

Post new topic  Reply to topic
 JMS Connection Pooling « View previous topic :: View next topic » 
Author Message
fsapienza
PostPosted: Fri Dec 02, 2005 6:43 am    Post subject: JMS Connection Pooling Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 02, 2005 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
fsapienza
PostPosted: Fri Dec 02, 2005 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 02, 2005 7:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS Connection Pooling
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.