aspose file tools*
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
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.
 
 
subject: JMS : Difference between a Persistent and a Non Persistent Message