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 » MQSeries PCF JAVA program

Post new topic  Reply to topic
 MQSeries PCF JAVA program « View previous topic :: View next topic » 
Author Message
amigupta1978
PostPosted: Fri Jan 25, 2002 3:41 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Hi,
Can anybody give the sample code for using the PCF commands using the MQSeries JAVA APIs. I am using the MQSeries ver 5.2 on AIX with JDK 1.2.2.
Actually I have to make a JAVA program to make the queue GET inhibited on certain conditions. I found the help on PCF commands but they all are in the C language. It would be a great help if somebody can send a sample PCF program using JAVA.

Thanks in Advance,
Amit
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolban
PostPosted: Fri Jan 25, 2002 5:19 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

You don't have to use PCF to acheive this task. See the latest "Using Java" manual p137. You will read about a method on the MQQueue object called setInhibitGet(). This method allows you to set the "Get Inhibit" flag directly. It takes one of the following two values as a parameter:

o MQC.MQQA_GET_INHIBITED
o MQC.MQQA_GET_ALLOWED
Back to top
View user's profile Send private message
amigupta1978
PostPosted: Fri Jan 25, 2002 5:27 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

Thnx ....
This is woking fine.I somehow skipped this function.

But just for my learning sake can anyone provide me a sample JAVA program using the PCF commands to do some task. I am unable to start with writing a JAVA program for PCF as getting confused with so many structures there.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolban
PostPosted: Fri Jan 25, 2002 6:08 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Have you seen the PCF for Java class?

http://www-4.ibm.com/software/ts/mqseries/txppacs/ms0b.html

There may be a sample contained within the JavaDocs.
Back to top
View user's profile Send private message
amigupta1978
PostPosted: Fri Jan 25, 2002 6:44 pm    Post subject: Reply with quote

Centurion

Joined: 22 Jan 2002
Posts: 132
Location: India

hi,
Thnx again for ur help. Yes Ihave found some sample programs there..

Regards
Amit
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
zpat
PostPosted: Mon Jan 28, 2002 3:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Look at the (free) back issues of MQ Update. You will find some Java PCF there.

http://www.xephon.com/journals/more/MQ
Back to top
View user's profile Send private message
shcherb
PostPosted: Thu Oct 24, 2002 12:24 am    Post subject: PCF messages in JMS Reply with quote

Apprentice

Joined: 12 Sep 2001
Posts: 34

Hi,

Can I use PCF SupportPac with WebSphereMQ JMS classes ? If not, how can I suspend/resume (or inhibit put from) JMS queue ?
Thanks,
Vladimir
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 API Support » MQSeries PCF JAVA program
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.