This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JMS : Difference between a Persistent and a Non Persistent Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JMS : Difference between a Persistent and a Non Persistent Message " Watch "JMS : Difference between a Persistent and a Non Persistent Message " New topic
Author

JMS : Difference between a Persistent and a Non Persistent Message

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

This question is with respect to persistent messages , and non persistent messages .

As per the docs it says that for persistent messages the QueueSender.send() blocks until it recivies an acknowledgement .

Here my question is what is the difference between a persistent messages , and non persistent messages
Thanks in advance .


Save India From Corruption - Anna Hazare.
gopinathang ganapathy
Greenhorn

Joined: Nov 22, 2008
Posts: 4
message can be persisted to avoid message lost [for example jvm crash]. message can persisted to db/file system based on the messaging service configuration. in this case when the message service gets a message it makes sure it persist the message successfully before it sends ack.

hth
Gopi
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

thanks Gopi , that was a nice answer ,

Assume a scenario in case of a Persistent Messages , assume that the Message has been persisted in the File system / or in a database and has been picked up from the Queue from a MDB , so waht is the appropaite time to delete that Message from the Filesystem / Database ??

Thanks .

ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

so waht is the appropaite time to delete that Message from the Filesystem / Database

None.
The JMS server does that when it receives an acknowledgement that the Message has been consumed.

ram.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS : Difference between a Persistent and a Non Persistent Message
 
Similar Threads
Doubt in JMS pub/sub model
Durable and persistant message
Associacion n<->m
Doubt in JMS pub/sub model
Related to Pub/Sub Model