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
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: 642

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: 642
Thanks Much Ramprasad , browser helped to solve my problem.
I agree. Here's the link:
subject: Reading Message multipletimes
It's not a secret anymore!