DWR has a feature called reverse ajax, may be able to do what you are trying.
http://getahead.org/dwr/reverse-ajax
On 10/23/07, Paul Spencer <spencepd@xxxxxxxxx> wrote:
> How about some kind of polling using AJAX? Maybe the web layer can look for
> a message update on the server. Not exactly sure what the implementation
> would look like, but I think it could work.
>
> Found this.
>
> http://windyroad.org/2006/07/25/event-driven-ajax-part-1-pushing-server-side-events/
>
> On 10/23/07, Edward Sumerfield < esumerfd@xxxxxxxxxxxxxx> wrote:
> > 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
> >
> >
>
>
|