Forums Register Login

how to store jms messages until clients come online ?

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Look for "Durable Subscription" to messages in the docs.
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 644 times.
Similar Threads
Chat application using JMS API with OpenJMS JMS provider
Related to JMS Queue
What would be the correct choices
JMS - Queue - number of senders?
caching and load balancing
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:24:46.