|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS and Channel Status |
« View previous topic :: View next topic » |
Author |
Message
|
alexis |
Posted: Fri Dec 05, 2003 8:01 am Post subject: JMS and Channel Status |
|
|
Newbie
Joined: 23 Sep 2002 Posts: 3
|
Hello,
I have a small simplistic test program using JMS/MQSeries. The pseudocode is below. It's a small program which just reads a queue and loops forever. It never actually receives anything back and in my test I have nothing which writes to the queue.
When I look at the Channel Status in MQSeries Explorer, the number of "bytes received", "bytes sent" keeps on climbing. What are the factors which determine this values. It is using a "Server Connection" channel type. Is it to do with the CHANNEL definition? I need to be able to reduce the traffic. But I don't know where to begin
Any help in pointing me in the right direction would be much appreciated
Thanks
Alexis
//pseudocode
QueueConnection connection;
QueueSession session;
QueueReceiver qReceiver;
Message msg;
connection.start();
session = connection.createQueueSession( transacted, Session.CLIENT_ACKNOWLEDGE);
qReceiver = session.createReceiver(serverQueue);
boolean blah =false;
do //loop around for ever
{
msg = qReceiver.receive(30000);
} while(blah==false) |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Dec 05, 2003 8:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There's always going to be traffic along an open client channel even if no messages are sent or received.
This is because the client interacts with a client agent process on the server. The client doesn't actually execute any MQ API commands itself, it sends the commands over the channel to the client agent, which then executes the commands. The client and the client agent need to interact with each other to make sure that they are both still awake and alive as long as the channel is open.
This is documented in either the Intercommunications Guide or the Clients manual.
If you want to have no traffic going over the channel while your application is idle, then close the connection completely. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
alexis |
Posted: Tue Dec 09, 2003 4:10 am Post subject: |
|
|
Newbie
Joined: 23 Sep 2002 Posts: 3
|
Thanks for the reply. I'll look in those manuals for more info.
Alexis |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|