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.
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();
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());
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