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 API Support » PCF redirection possible?

Post new topic  Reply to topic
 PCF redirection possible? « View previous topic :: View next topic » 
Author Message
spfdgio
PostPosted: Wed Oct 27, 2004 12:18 pm    Post subject: PCF redirection possible? Reply with quote

Apprentice

Joined: 09 Oct 2002
Posts: 36

Using PCF commands via java (ms0b) to remotely administer a qmgr called "QM1". Is there any way anyone can think of to send PCF commands through "QM1" and have them run on a target qmgr "QM2" ( on a different box ) without pre-defining any queues or channels on target qmgr "QM2"? I basically want to get the PCF command to the SYSTEM.ADMIN.COMMAND.QUEUE on QM2 but without going through the QM2 SVRCONN channel. Thanks!
Back to top
View user's profile Send private message
vennela
PostPosted: Wed Oct 27, 2004 12:34 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Not without defining queues or channels
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kevinf2349
PostPosted: Wed Oct 27, 2004 12:49 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

I would hope not!

It sounds to me like a good thing that it doesn't let you do that.

If you don't have access to QM2 one assumes/hopes that this is for a good reason. If there isn't a good reason and if you have a good buisness justification for accessing it (like to perform your job function) then get permissions to access it approved and then client into it.
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed Oct 27, 2004 1:54 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Are you saying you cannot have any channel communications between QM1 and QM2 or specifically not to have a SRVCONN connection to QM2?
Back to top
View user's profile Send private message
spfdgio
PostPosted: Thu Oct 28, 2004 4:26 am    Post subject: Reply with quote

Apprentice

Joined: 09 Oct 2002
Posts: 36

Thanks for your responses. To clindsey and others, let me try to clarify. QM1 and QM2 have sender/receiver channels defined to eachother and running already. Both QM1 and QM2 have SYSTEM.DEF.SVRCONN defined and available to me. I am trying to cross an internal firewall which is setup such that I have to signoff the network for QM1 and signon the network for the other to do monitoring/admin with PCF. I wish to do PCF from QM1 as the "hub" to a variety of QM2,QM3,QMx qmgrs which are spokes across the firewall. I do not wish to define any 'monitoring' objects on the spoke qmgrs QM2,QM3,QM4....only run the PCF commands. I hope this clarifies my question better. Thank you!
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Oct 28, 2004 7:31 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
QM1 and QM2 have sender/receiver channels defined to eachother and running already.


Then you should be able to do what you want.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
spfdgio
PostPosted: Thu Oct 28, 2004 8:15 am    Post subject: Reply with quote

Apprentice

Joined: 09 Oct 2002
Posts: 36

Thank you. Excuse my ignorance, but can someone provide the technique to do this and maybe a snipit of code or two that works or I can get the main idea from?
Back to top
View user's profile Send private message
clindsey
PostPosted: Thu Oct 28, 2004 8:23 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

You will need to specify the queuemanagername in the queue object and the PCFAgent method of MS0B does not allow you to do this. The qmanager_name field is read only. The queue object is completely encapsulated in the PCFAgent class.

You will have to do this with in a more manual fashion using MQ Base Java to establish the connection to the queue manager on QM1 and the queue on QMx. Then construct a PCFMessage to send and parse the PCFMessage of the reply.

I can recommend some sample code to get you started. Go to http://www.developer.ibm.com/tech/sampmq.html and search for DumpBroker.java and download it. You can see how it sets up the command queue. Of course, your command queue name is different. It will also show you how to generate a PCFMessage and handle the results.

Hope this helps,
Charlie
Back to top
View user's profile Send private message
spfdgio
PostPosted: Wed Nov 03, 2004 5:54 am    Post subject: Reply with quote

Apprentice

Joined: 09 Oct 2002
Posts: 36

Charlie, Thanks for your help. This is exactly what I needed. Im not a java programmer, so I'll pickup a book and get through this.
Back to top
View user's profile Send private message
vennela
PostPosted: Thu Nov 04, 2004 3:40 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

clindsey wrote:
You will have to do this with in a more manual fashion using MQ Base Java to establish the connection to the queue manager on QM1 and the queue on QMx. Then construct a PCFMessage to send and parse the PCFMessage of the reply.


So what you are saying is we cannot use the support pac (MS0B) but do our own coding to put a PCF message?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
clindsey
PostPosted: Thu Nov 04, 2004 4:45 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Not exactly Venny.

I am only saying that you cannot use the PCFAgent class or PCFAgentMessage class from MS0B. Theses classes do not give you the control of the SYSTEM.ADMIN.COMMAND.QUEUE that is required for spfdgio's needs. He wants to connect to qmgr1 and send to SYSTEM.ADMIN.COMMAND.QUEUE on qmgr2 which requires that the queueManagerName attribute be set in the MQQueue object.

You can still use the PCFMessage class from MS0b as well as the constants in the interfaces like CMQC, CMQCFC, etc to build the message and parse the reply.

Charlie
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Nov 05, 2004 7:23 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

It might work to create a PCFMessage, use the write() to put it into a new MQMessage, set the queue manager name, etc, and then create a new PCFMessage from the MQMessage.

And then use the PCFAgent to send that message.

I haven't tried it.
_________________
I am *not* the model of the modern major general.
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 API Support » PCF redirection possible?
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.