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 » IP addresses of readers/writers of a queue

Post new topic  Reply to topic
 IP addresses of readers/writers of a queue « View previous topic :: View next topic » 
Author Message
paulic
PostPosted: Thu Sep 23, 2004 7:52 am    Post subject: IP addresses of readers/writers of a queue Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

Is there a way to get the IP addresses of the readers and writers connected to a particular queue?
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Sep 23, 2004 8:44 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Do a Queue Status command from runmqsc on the queue in question.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
paulic
PostPosted: Thu Sep 23, 2004 12:12 pm    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

PeterPotkay wrote:
Do a Queue Status command from runmqsc on the queue in question.

Is this information available in the java MQ API?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Sep 23, 2004 2:30 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Use the Java MQ PCF classes - SupportPac MS0B.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
paulic
PostPosted: Fri Sep 24, 2004 7:15 am    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

RogerLacroix wrote:
Hi,

Use the Java MQ PCF classes - SupportPac MS0B.

Regards,
Roger Lacroix


Thanks Roger. I downloaded SupportPac MS0B and tried one of the examples. I got an error- Reason code 3001, but can't find this error code in IBM's manual. Is there a seperate manual for PCF specific error codes?
thanks,
Paul
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Sep 24, 2004 8:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Use mqrc to get quick info:

mqrc 3001
3001 0x00000bb9 MQRCCF_CFH_TYPE_ERROR

More details are in the WMQ Programmable Command Formats and Administration Interface manual:

3001 (X'0BB9') MQRCCF_CFH_TYPE_ERROR
Explanation: Type not valid.
The MQCFH Type field value was not valid.
Programmer Response: Specify a valid type.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
RogerLacroix
PostPosted: Fri Sep 24, 2004 7:14 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Are you sending PCF commands to the mainframe (OS/390 or z/OS) ??

MQ on the mainframe does NOT support PCF commands (at least not until v6 ). You must send plain text commands.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Sat Sep 25, 2004 6:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Roger -
Unfortunately, the information he is trying to get is exactly the information that you and I have been discussing, that seems not to work from MS0B.

That is, right now, Roger and I are working with the developer of MS0B to resolve a bug with using MQIACF_Q_HANDLE. All you get back is an empty response, because the code doesn't actually allow you to set MQIACF_Q_HANDLE.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
paulic
PostPosted: Mon Sep 27, 2004 4:56 am    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

RogerLacroix wrote:
Hi,

Are you sending PCF commands to the mainframe (OS/390 or z/OS) ??

MQ on the mainframe does NOT support PCF commands (at least not until v6 ). You must send plain text commands.

Regards,
Roger Lacroix

Roger,
Yes, I sending to the mainframe, so I guess I'll have to wait for v6.
thanks,
Paul
Back to top
View user's profile Send private message
paulic
PostPosted: Mon Sep 27, 2004 4:59 am    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

jefflowrey wrote:
Roger -
Unfortunately, the information he is trying to get is exactly the information that you and I have been discussing, that seems not to work from MS0B.

That is, right now, Roger and I are working with the developer of MS0B to resolve a bug with using MQIACF_Q_HANDLE. All you get back is an empty response, because the code doesn't actually allow you to set MQIACF_Q_HANDLE.

Roger,
Are you saying that it doesn't work on the mainframe? Or doesn't work for all platforms? I would also be interested in getting this info from Solaris based systems also.
thanks,
Paul
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Sep 27, 2004 5:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Z/OS queue managers do not support PCF messages. They only support messages that contain MQSC commands in plain text.

MS0B only supports PCF messages, so you can not use it with z/OS queue managers.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Sep 27, 2004 8:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi paulic,

As per Jeff's comments, this is what I was referring to.

jefflowrey wrote:
Z/OS queue managers do not support PCF messages. They only support messages that contain MQSC commands in plain text.

MS0B only supports PCF messages, so you can not use it with z/OS queue managers.

_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
paulic
PostPosted: Tue Oct 26, 2004 12:32 pm    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

jefflowrey wrote:
Z/OS queue managers do not support PCF messages. They only support messages that contain MQSC commands in plain text.

MS0B only supports PCF messages, so you can not use it with z/OS queue managers.


Jeff,
I got the DISPLAY QSTATUS to work with PCF on a Solaris system running MQ 5.3, but I couldn't get it to work on a mainframe by sending plain text MQSC commands from a java program. I couldn't get any plain text command to work. I tried sending plain text MQSC commands to a mainframe (MQ 5.3) COMMAND_INPUT_QUEUE but could not read the reply messages from the reply queue. If I step through the program in debugger, I see 3 messages on the reply queue right after sending the DISPLAY command, but the get command times out with reason code 2033(no message available). Any Idea why I cant read the replies?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Oct 26, 2004 3:02 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

Did you forget to clear the MsgID & CorrelID fields BEFORE doing the get. Or are you sure you are reading the right queue?

3 messages - sounds like you got an error from the z/OS queue manager's command server. Because, it always sends a header and trailer messages - minimum of 2 messages.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
paulic
PostPosted: Wed Oct 27, 2004 11:08 am    Post subject: Reply with quote

Newbie

Joined: 23 Sep 2004
Posts: 7

RogerLacroix wrote:
Hi,

Did you forget to clear the MsgID & CorrelID fields BEFORE doing the get. Or are you sure you are reading the right queue?

3 messages - sounds like you got an error from the z/OS queue manager's command server. Because, it always sends a header and trailer messages - minimum of 2 messages.

Regards,
Roger Lacroix

Hi Roger,
Thanks Roger. I had a typo in specifying the queue on the open.
thanks,
Paul
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 » IP addresses of readers/writers of a queue
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.