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 in unit of work?

Post new topic  Reply to topic
 PCF in unit of work? « View previous topic :: View next topic » 
Author Message
Monk
PostPosted: Mon Aug 03, 2009 9:27 pm    Post subject: PCF in unit of work? Reply with quote

Master

Joined: 21 Apr 2007
Posts: 282

Hi All,

I would like to know if i can execute PCF command against a QM in a Unit of work.
So if i start a unit of work MQBEGIN
then i send a PCF message to define some queue
then i backout.

Will the queue be created or not?
_________________
Thimk
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Mon Aug 03, 2009 10:09 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

well, that does not differ from any other unit of work stuff.

if you put the pcf message with the define queue command to the command queue within an unit of work, and then backout, the pcf message will be purged and therefore will not hit the command server and no queue is created.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Monk
PostPosted: Tue Aug 04, 2009 12:35 am    Post subject: Reply with quote

Master

Joined: 21 Apr 2007
Posts: 282

YES!!!!
it works...
_________________
Thimk
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Aug 04, 2009 1:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

But once you commit the message, there's no way to tell the command server to back out the changes it's made based on that message.

You must compensate, not roll-back.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Aug 04, 2009 9:12 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

On the understanding that it's not often a good idea to create objects on the fly like this. It becomes very easy to lose control of your setup and hard to convince your security people that malicious activity can't be achieved.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Aug 04, 2009 3:19 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

Monk wrote:
YES!!!!
it works...


But you can't get the reply message from the command server in the same UOW !

Can you explain why you need to do this anyway? There is probably a more sensible alternative. Applications should not need to issue MQ admin commands.
_________________
Glenn
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 in unit of work?
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.