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 » Checking IPPROCS on a queue from JMS

Post new topic  Reply to topic
 Checking IPPROCS on a queue from JMS « View previous topic :: View next topic » 
Author Message
ksagar_k
PostPosted: Wed Apr 20, 2005 3:44 am    Post subject: Checking IPPROCS on a queue from JMS Reply with quote

Newbie

Joined: 20 Apr 2005
Posts: 3

Is there any way to check the IPPROCS on the MQ Queue from JMS ??
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 20, 2005 3:50 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

With PCF commands, or possibly the MQINQ call.

What are you trying to do?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ksagar_k
PostPosted: Wed Apr 20, 2005 5:30 am    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2005
Posts: 3

I just want to use JMI API(not MQ Inquiry calls) to find IPPROCS count on the queue.
Requirement is something like - For the given PROVIDER_URL, and queue
i should have a single message listener running on that queue.

The message listener start up program should first inquire the queue. if there is a message listener started already(IPPROCS is > 0 ), then this should error out.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 20, 2005 5:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You're writing your own JMS provider? Otherwise, I'd say to use a singleton pattern.

You can use PCF messages to get the IPPROC.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ksagar_k
PostPosted: Wed Apr 20, 2005 5:42 am    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2005
Posts: 3

Thanks !!
Singleton pattern is one better option.
But just wanted to know whether there is any option in JMS for inquiring attributes of a queue.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 20, 2005 5:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

ksagar_k wrote:
But just wanted to know whether there is any option in JMS for inquiring attributes of a queue.


JMS is designed to be provider neutral. I don't think it safe to assume that all providers will have attributes that can be inquired. And I suspect it was not reasonable for the JMS spec to require that all providers have attributes that can be inquired.

So I think you need to always use some sort of provider specific interface - like PCF for MQ.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
malammik
PostPosted: Wed Apr 20, 2005 6:38 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

jefflowrey wrote:
Yes.

With PCF commands, or possibly the MQINQ call.

What are you trying to do?

Jeff -
Are you sure command server will be able to process a message w/ rfh2 header? I never tried this.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
fjb_saper
PostPosted: Wed Apr 20, 2005 12:11 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

JMS does not mean you have to have the RFH2 Header.

If you want to do it full JMS you should define your input queue and reply to queue as being non jms.

You will need the MS0B package because it will make the usage a lot easier. But you can have the actual transport and everything else going through JMS and use MS0B only as helper classes.

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Checking IPPROCS on a queue from JMS
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.