|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Persistent put - How to ? |
« View previous topic :: View next topic » |
Author |
Message
|
Robin |
Posted: Mon Oct 13, 2003 4:33 am Post subject: Persistent put - How to ? |
|
|
Newbie
Joined: 13 Oct 2003 Posts: 2
|
Hi,
We're using MQseries classes for Java V5.2.2 as a client sending/receiving to a remote server.
How do I implement Persistence in my PUT commands (is it MQPutMessageOptions ?) ? If so which option do I set ?
Is it the same for my GETs (MQGetMessageOptions) ?
Can I dictate persistence at the client side (my side) or does the server also have to do something ?
If my only aim is to make sure messages don't "dissappear" then is SYNCPOINT an alternative (or is that something different) ?
Thanks in advance for any help,
Robin |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Oct 13, 2003 4:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
http://www.mqseries.net/phpBB2/viewtopic.php?t=11190
The persistance is soley determined by the application that PUTS it to the queue.
The persistance property on queues is a default value that will be assigned if the application doesn't set persistance specifically. But choosing to put the message with the queue defaults is still the application's decision.
It may be helpful for you to read the Application Programming Guide. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Robin |
Posted: Thu Oct 16, 2003 6:38 am Post subject: |
|
|
Newbie
Joined: 13 Oct 2003 Posts: 2
|
Can I also force a GET to be persistent regardless of the queue defaults using the same method ?
Thanks in advance,
Robin |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Oct 16, 2003 9:23 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The persistence is defined when you put the message. Once a message is persistent (or non-persistent), you simply get it and don't set anything. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 16, 2003 10:44 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
bower5932 wrote: |
The persistence is defined when you put the message. Once a message is persistent (or non-persistent), you simply get it and don't set anything. |
Right.
Just to be extra clear for Robin, once you do a destructive get on a message (and commit it, if you're under syncpoint), the message only exists in your program. If your program crashes after the get or commit, the message is gone.
That's the whole point of syncpoint - that you can do a "destructive" get and have it be rolled back if your program abends. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|