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 » JMS and Channel Status

Post new topic  Reply to topic
 JMS and Channel Status « View previous topic :: View next topic » 
Author Message
alexis
PostPosted: Fri Dec 05, 2003 8:01 am    Post subject: JMS and Channel Status Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 05, 2003 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
alexis
PostPosted: Tue Dec 09, 2003 4:10 am    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2002
Posts: 3

Thanks for the reply. I'll look in those manuals for more info.

Alexis
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 Java / JMS » JMS and Channel Status
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.