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 » General IBM MQ Support » MQOPEN question

Post new topic  Reply to topic
 MQOPEN question « View previous topic :: View next topic » 
Author Message
skiv
PostPosted: Tue Jul 11, 2006 2:34 am    Post subject: MQOPEN question Reply with quote

Apprentice

Joined: 19 Jun 2006
Posts: 33

Hi

May I ask in the API crossing exit, the MQOPEN functions, how can I stop the connections or anything that can prevent the client from continuing to publish?

thanks alot
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jul 11, 2006 2:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Have the exit return a non-zero CC and RC.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
skiv
PostPosted: Tue Jul 11, 2006 4:24 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Jun 2006
Posts: 33

I have the cc set to MQCC_FAILED and rc set to MQRC_NOT_AUTHORIZED.. but my publisher is still sending
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Jul 11, 2006 4:31 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

sorry. mean to say set
ExitResponse to MQXCC_SUPPRESS_FUNCTION
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
skiv
PostPosted: Tue Jul 11, 2006 7:37 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Jun 2006
Posts: 33

I set that but still no use....

set it inside the MQOPEN function am I right?

pExitParms->ExitResponse = MQXCC_SUPPRESS_FUNCTION;
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Jul 12, 2006 2:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Yes, that should work..are you SURE your exit is being called.

Doc at:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.amqzag.doc/amqzag08252.htm

Quote:
MQXCC_SUPPRESS_FUNCTION
Suppress function.

If an MQXR_BEFORE exit function returns this value, the queue manager sets the completion code for the API call to MQCC_FAILED, the reason code to MQRC_SUPPRESSED_BY_EXIT, and the API call is skipped. If returned by the MQXF_DATA_CONV_ON_GET exit function, data conversion is skipped.

The ExitResponse2 field must be set by the exit function to indicate whether the remaining MQXR_BEFORE exit functions and their matching MQXR_AFTER exit functions should be invoked. Any of these exit functions can alter the completion code and reason code of the API call that were set by the queue manager.

If an MQXR_AFTER or MQXR_CONNECTION exit function returns this value, the queue manager continues processing as though the exit had returned MQXCC_FAILED.
MQXCC_SKIP_FUNCTION
Skip function.

This is the same as MQXCC_SUPPRESS_FUNCTION, except the exit function can set the completion code and reason code of the API call.

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
skiv
PostPosted: Wed Jul 12, 2006 5:58 pm    Post subject: Reply with quote

Apprentice

Joined: 19 Jun 2006
Posts: 33

Sorry it works.. my mistake in the coding part...

Thanks alot for your help
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 » General IBM MQ Support » MQOPEN question
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.