This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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 ?
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.