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 API Support » MQ Connection pool in C++

Post new topic  Reply to topic
 MQ Connection pool in C++ « View previous topic :: View next topic » 
Author Message
David.Partridge
PostPosted: Thu Dec 23, 2004 8:19 am    Post subject: MQ Connection pool in C++ Reply with quote

Master

Joined: 28 Jun 2001
Posts: 249

Has anyone implemented an MQ connection pooling mechanism for C++ similar to that provided in MQ Java and MQ JMS?

I think this would involve sub-classing IMQQueueManager and implementing something like the java MQSimpleConnectionManager in C++ (which I realise is a non-trivial task).

This would be for a multi-threaded environment, and I would imagine that the main thread would create the connection pool, and that the sub-classed IMQQueueManager.connect() method would use the single connection pool with "shared connection handles" which it would dole out to the thread (actually issuing a connect if none available). When the thread issued the IMQQueueManager.disconnect(), then the handle would be returned to the pool. I guess the connection pool would need to run a timer to release connection handles after a time as well.

I'm lead to believe that the .NET classes might implement something like this under the covers, but I've not them documented as doing so, and in any case the application is C++ and not necessarily Windows based.

Cheers
Dave
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 API Support » MQ Connection pool in C++
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.