File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 9947
    
160

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


[My Blog] [JavaRanch Journal]
 
wood burning stoves
 
subject: how to store jms messages until clients come online ?
 
Similar Threads
caching and load balancing
JMS - Queue - number of senders?
Chat application using JMS API with OpenJMS JMS provider
What would be the correct choices
Related to JMS Queue