Author |
Message
|
Monk |
Posted: Mon Aug 03, 2009 9:27 pm Post subject: PCF in unit of work? |
|
|
 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 |
|
 |
Mr Butcher |
Posted: Mon Aug 03, 2009 10:09 pm Post subject: |
|
|
 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 |
|
 |
Monk |
Posted: Tue Aug 04, 2009 12:35 am Post subject: |
|
|
 Master
Joined: 21 Apr 2007 Posts: 282
|
YES!!!!
it works... _________________ Thimk |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 04, 2009 1:57 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Tue Aug 04, 2009 9:12 am Post subject: |
|
|
 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 |
|
 |
gbaddeley |
Posted: Tue Aug 04, 2009 3:19 pm Post subject: |
|
|
 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 |
|
 |
|