File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Reading Message multipletimes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Reading Message multipletimes" Watch "Reading Message multipletimes" New topic

Reading Message multipletimes

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 614

is it possible for multiple clients to read same message multipletimes using topic in jms?

what i am trying to acheave is central location to share some value for multiple clients, i already have application that is up& running for multiple clients to read jms queue, what i need is central location i.e a jms server to hold some value and these clients read this value continusly for given time.


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
ramprasad madathil
Ranch Hand

Joined: Jan 24, 2005
Posts: 489

For Queues, you have a QueueBrowser which allows you to peek without consuming.
For topics, there is no equivalent out of the box. Maybe you could use a transacted session and rollback after reading the message. It's a nasty hack with maybe bad side effects and I wouldnt recommend it, but it would achive what you desire.

Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 614
Thanks Much Ramprasad , browser helped to solve my problem.
It is sorta covered in the JavaRanch Style Guide.
subject: Reading Message multipletimes
Similar Threads
regarding JAR files
Synchronous Messaging
JMS or RMI to notify client of data change
Multiple RMI Servers problem --- Urgent
Sending Messages to Multiple Apps