This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Persisting messages in JMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Persisting messages in JMS" Watch "Persisting messages in JMS" New topic

Persisting messages in JMS

Matt Givney

Joined: Sep 17, 2003
Posts: 2
JMS question. I have a topic publisher/subscriber set up on a single topic. When both are logged in and I post a message, I receive it without any problem.
But if my publisher publishes a message while the subscriber isn't running, and I then run the subscriber, the message never gets delivered. As long as the topic is alive, shouldn't the message persist on the topic until the subscriber pulls it off? If so, where should I look to correct this issue?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Use Durable Subscription.
JMS Tutorial

It is sorta covered in the JavaRanch Style Guide.
subject: Persisting messages in JMS
It's not a secret anymore!