Posted: Wed Jan 05, 2011 7:47 pm Post subject: IMPLEMENTING MQ LISTENER USING SIMPLE API
Apprentice
Joined: 05 Sep 2006 Posts: 36 Location: Chennai
Hi all
Would need your directions or samples preferrably to implement the Message Listener in java using MQ API .
My requirement is , I have around 10 Queues in the Same Queue manager and my Java Program needs to be configured to read the messages in the 10 Queue as and when it arrives. The MQ server Version is 5.3.
We have written using Spring and issue is each time a new connection is getting created and its not been closed or disconnected , the reason being that there should be some active connection listening the queue which will pool the message . Now there are lot of active TCP/IP connections which is not released yet and it denies any new connection to the Queue Manager.
We need to kill the n/w connection manually which doesnt help us.
Wrong question. The MDB type connections done by the spring framework need to be catered for.
Determine how many total channel connections you need (spring + all the rest)
For your MDB type spring connections you need number of instances + 1 connections for each of the MDB type beans.
My guess is you are over the default of 100. Check the Channel Stanza to see how to change the default. It is common to have more than 10 times the default in production.
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