| To: | Chris Nelson <cnelson4eii@xxxxxxxxx>, esumerfd@xxxxxxxxxxxxxx, CinJug <users@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] Messaging At the Web Layer |
| From: | Joe Rust <joe_rust2003@xxxxxxxxx> |
| Date: | Tue, 23 Oct 2007 18:05:31 -0700 (PDT) |
| Delivered-to: | mailing list users@xxxxxxxxxx |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=uGhpG4Z1Da4Bm2Auk94MdneculHFJGd3tO+GANY5uwDAgVwNnneadAZ0npAqQFaei9aWtedkseO0fitWo2YAbft3BmGZTpaLbIz+CigWD3VYh9rkvgKAgPnQuKE/ppKUQqUiCkbNJ5vNJ40PUgcK2TNkqv7s6cUJioTn2JVX2cE=; |
| Mailing-list: | contact users-help@xxxxxxxxxx; run by ezmlm |
|
My thoughts exactly. That would be a straightforward and relatively easy solution.
I'm thinking read the data from the database into a Terracotta shared object (Terracotta comes prepackaged with cache modules and all the works), and have the code triggered by the JMS message update this shared object whenever a database notification is received. The web tier never even has to consider refreshing, and that would be your solution.
Joe ----- Original Message ----
From: Chris Nelson <cnelson4eii@xxxxxxxxx> To: esumerfd@xxxxxxxxxxxxxx; CinJug <users@xxxxxxxxxx> Sent: Tuesday, October 23, 2007 5:52:08 PM Subject: Re: [cinjug-users] Messaging At the Web Layer Were you there the night we had terracotta in? Off the top of my head it sounds like it might be a decent fit for what you are doing. You could use it (I think) to create a cache both JMS and the web could share. --Chris ----- Original Message ---- From: Edward Sumerfield <esumerfd@xxxxxxxxxxxxxx> To: CinJug <users@xxxxxxxxxx> Sent: Tuesday, October 23, 2007 3:35:36 PM Subject: [cinjug-users] Messaging At the Web Layer I am considering implementing a JMS messaging container at the Web layer. Tell me I am a fool? :-) I have a simple web app polled by a client every second for its data. Not wanting to hit the database for every client, every second, it is cached at the web layer. Enter JMS. We will be receiving notifications of changes to the database data via JMS messages. So MessageDrivenBeans, deployed to JBoss EJB container will receive these messages but what should they do to tell the cache in the Web container to update. It seems my options are to push the cache to a java space somewhere so that the web layer and the MDB's can access it or to move the messaging container to the web layer. Thoughts? Ed __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [cinjug-users] Messaging At the Web Layer, Brian McCullars |
|---|---|
| Next by Date: | Re: [cinjug-users] Messaging At the Web Layer, Mike Mills |
| Previous by Thread: | Re: [cinjug-users] Messaging At the Web Layer, Chris Nelson |
| Next by Thread: | Unicode in comments?, Edward Sumerfield |
| Indexes: | [Date] [Thread] [Top] [All Lists] |