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 » PCFMessageAgent Query

Post new topic  Reply to topic
 PCFMessageAgent Query « View previous topic :: View next topic » 
Author Message
arunmakhija
PostPosted: Mon Jan 06, 2003 12:01 pm    Post subject: PCFMessageAgent Query Reply with quote

Novice

Joined: 17 Jun 2002
Posts: 20
Location: Sydney

Hi

I had some question on the PCFMessageAgent in PCF classes for Java.

The scenario:
In the assignement I am doing I need to query/INQUIRE the queue/process in some order like I INQUIRE_QUEUE the queue first and from there get the PROCESS NAME and then based on process name
do the INQUIRE_PROCESS. After that I invoke RESET Q STATS on the queue.

This can be done for multiple queues so I have created separate methods
called inquireQueue(), inquireProcess() and resetQueueStats() all being called from a main method

Right Now:
From main method, I am passing QM connection[MQQueueManager] to each method and doing a
Code:

PCFMessageAgent pcfMesgAgent = new PCFMessageAgent (_queueManager);
pcfMesgAgent.disconnect();


This can be called multiple times. Is it a good idea to keep doing that ina method like getting a new Agent and dicsonnecting
everytime you need something by PCF query

How about the alternate Option:
I do the following in main method

Code:

PCFMessageAgent pcfMesgAgent = new PCFMessageAgent (_queueManager);


and keep passing the PCFMessageAgent Object to every method and use the agent inside the each method for every PCF request call.
and IN Main method, after all invokations to the methods In the end do the following

Code:

pcfMesgAgent.disconnect();


Let me know if you can help me. Any advice /help will be appreciated
Thanks in advance
Arun
_________________
In Celebration of Being Alive !!!
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

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