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 » Connection Pool

Post new topic  Reply to topic
 Connection Pool « View previous topic :: View next topic » 
Author Message
subhendu
PostPosted: Tue Mar 12, 2002 1:09 pm    Post subject: Reply with quote

Novice

Joined: 05 Mar 2002
Posts: 18

I was trying to use connection pool given by MQ base java.But beforre that i tried to connect same queue manager twice in a application without pooling. The first connection took 300 ms to connect and the second connection took 20 ms. So i could not find why it is happenning. I have not done pooling. Is there any default thing happenning. The block of code i have attached below.

MQEnvironment.hostname="192.168.188.140";
MQEnvironment.channel="SYSTEM.DEF.SVRCONN";
MQEnvironment.port=2000;



System.out.println("Start time for first connection "+System.currentTimeMillis());
MQQueueManager qmgr1 = new MQQueueManager("ROYALBANK");
System.out.println("End time for first connection "+System.currentTimeMillis());
qmgr1.disconnect();


MQEnvironment.hostname="192.168.188.140";
MQEnvironment.channel="SYSTEM.DEF.SVRCONN";
MQEnvironment.port=2000;

System.out.println("Start time for second connection "+System.currentTimeMillis());
MQQueueManager qmgr2 = new MQQueueManager("ROYALBANK");
System.out.println("End time for second connection "+System.currentTimeMillis());

Any idea ??

Thanks,
Subhendu
Back to top
View user's profile Send private message
Lavanya Yajamanam
PostPosted: Tue Jun 18, 2002 12:52 pm    Post subject: Reply with quote

Newbie

Joined: 18 Jun 2002
Posts: 4

Hi Subhendu,

Did U get answer for Ur question?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Connection Pool
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.