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 Java / JMS » Persistent put - How to ?

Post new topic  Reply to topic
 Persistent put - How to ? « View previous topic :: View next topic » 
Author Message
Robin
PostPosted: Mon Oct 13, 2003 4:33 am    Post subject: Persistent put - How to ? Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 13, 2003 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Robin
PostPosted: Thu Oct 16, 2003 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Oct 16, 2003 9:23 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Thu Oct 16, 2003 10:44 am    Post subject: Reply with quote

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
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 Java / JMS » Persistent put - How to ?
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.