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 » Pooling of JMS connections to JMS message server

Post new topic  Reply to topic
 Pooling of JMS connections to JMS message server « View previous topic :: View next topic » 
Author Message
hilltops
PostPosted: Mon Apr 24, 2006 1:00 am    Post subject: Pooling of JMS connections to JMS message server Reply with quote

Centurion

Joined: 01 Mar 2006
Posts: 112

Is the JMS connection factory object analogous to a JDBC connection factory in the sense of having a configurable number of connections to the underlying server and supporting the return of connections objects to the pool once they have been used?

It is not very obvious from looking at a basic JMS code what is really happen behind the scene.

Thankx
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 24, 2006 4:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mvic
PostPosted: Mon Apr 24, 2006 5:21 am    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

jefflowrey wrote:
Yes.

I would have said no. The connection factory simply holds data used to initialise a connection.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Apr 24, 2006 5:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I guess it depends on if you're using it in a container or not...

http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/umj_pqcfm.html
Quote:
Connection pool
Specifies an optional set of connection pool settings.

Connection pool properties are common to all J2C connectors.

The application server pools connections and sessions with the JMS provider to improve performance. This is independent from any WebSphere MQ connection pooling. You need to configure the connection and session pool properties appropriately for your applications, otherwise you may not get the connection and session behavior that you want.

Change the size of the connection pool if concurrent server-side access to the JMS resource exceeds the default value. The size of the connection pool is set on a per queue or topic basis.

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hilltops
PostPosted: Mon Apr 24, 2006 6:37 am    Post subject: Reply with quote

Centurion

Joined: 01 Mar 2006
Posts: 112

The foregoing implies that for a stand-alone application (ie not deployed within WAS) the connection pooling functionality is not available.

There's an attribute on the QueueConnectionFactory/TopicConnectionFactory called USECONNPOOLING(YES/NO) implying that thes factories hold pooled connections. But this does not tell you how many connection there are or whether these can be configured.
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 » Pooling of JMS connections to JMS message server
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.