wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes how to store jms messages until clients come online ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to store jms messages until clients come online ?" Watch "how to store jms messages until clients come online ?" New topic
Author

how to store jms messages until clients come online ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
I know that i can use a pub/sub model to send a message to several subscriber , and a point-to-point to send message to a queue and then a client will fetch the message .

now i need to have :

Messages should stay in the queue until a clinet come and fetch them , even if it tale several days.

how i should configure the queue for this kind on requirement ?
how i should make sure that message will not lose on a server failure ?

does pub/sub support such kind of messaging ?

Thanks
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
You should not have to do anything.

JMS messages are PERSISTENT by default ("Delivery Mode") (per the spec I think).

With JMS, a discussion of pub/sub versus point to point is not relevant: see the MessagProducer interface, and the QueueSender and TopicPublisher implementations.

Regards, Guy
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10066
    
163

Look for "Durable Subscription" to messages in the docs.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to store jms messages until clients come online ?