ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Using JMS publish-subscribe for Web application

Post new topic  Reply to topic
 Using JMS publish-subscribe for Web application « View previous topic :: View next topic » 
Author Message
ajomillar
PostPosted: Thu Mar 24, 2005 11:16 am    Post subject: Using JMS publish-subscribe for Web application Reply with quote

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
View user's profile Send private message MSN Messenger
bower5932
PostPosted: Thu Mar 24, 2005 1:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Thu Mar 24, 2005 1:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
ajomillar
PostPosted: Thu Mar 24, 2005 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Using JMS publish-subscribe for Web application
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.