This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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: 641

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: 641
Thanks Much Ramprasad , browser helped to solve my problem.
I agree. Here's the link:
subject: Reading Message multipletimes
jQuery in Action, 3rd edition