|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using JMS publish-subscribe for Web application |
« View previous topic :: View next topic » |
Author |
Message
|
ajomillar |
Posted: Thu Mar 24, 2005 11:16 am Post subject: Using JMS publish-subscribe for Web application |
|
|
 Centurion
Joined: 22 Aug 2003 Posts: 121 Location: Milwaukee, WI
|
I'm new to JMS pub-sub. I have a project where 1000s of users will receive info updates in a web page (similar to a stock ticker). The publisher will read data from a table and send to the queue manager (MQ v5.3 pub-sub broker). But I'm not certain about the subscriber implementation. Let's say there 10 users in an office who need to get info on the same topic. Within the web application, does this info persist inside of a data object that is regularly refreshed by a subscriber component? In short, should there be a "listener" on the app server that updates these objects? I've read about Message Driven Beans but what if we are still developing on WAS 4? |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Mar 24, 2005 1:08 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Subscribers come in two flavors: durable and non-durable. Durable subscribers register and then can either stay to pick up messages or leave. If they leave, all missed publications are kept on a queue for them for when they return. Non-durable subscribers are only active while the subscriber is active. If the subscriber goes away, no more messages are published to it.
So, I think the answer to your question is that the publication messages are persisted on the subscriber's queue while they are away. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 24, 2005 1:30 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I would build this as a Stateless Session Bean that got updated from an MDB.
Except that if you're using WAS4, you can't use MDBs. You have to use Listeners.
Either way, web applications access the SSB to get the "current" subscription information. The MDB/Listener watches the subscription queue, and updates the SSB when new messages arrive. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
ajomillar |
Posted: Thu Mar 24, 2005 2:29 pm Post subject: |
|
|
 Centurion
Joined: 22 Aug 2003 Posts: 121 Location: Milwaukee, WI
|
Thanks guys for the tips! I can always count on the knowledge and good will of the mqseries.net forum experts. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|