aspose 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
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: 550
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: 9329
    
110

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 ?
 
Similar Threads
Related to JMS Queue
What would be the correct choices
caching and load balancing
Chat application using JMS API with OpenJMS JMS provider
JMS - Queue - number of senders?