tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Dowgiallo" <>
Subject Re: Oracle database calling the web app?
Date Tue, 06 Jan 2009 22:26:43 GMT
Support for what you want to do is actually a feature in Oracle 11g.  For
Oracle 10g, you want to look at the publish/subscribe support which is part
of advanced queueing.  The documentation is available online at


On Tue, Jan 6, 2009 at 5:22 PM, Bill Davidson <> wrote:

> Is it possible to set up a callback like situation so that a trigger in an
> Oracle 10g database can call a method in a currently running webapp
> that's running in Tomcat 6?
> My situation is that I want to cache some infrequently changed database
> data in memory but when that data does change in the database, I want
> the web applications, running on multiple servers, to immediately pick
> up the change.
> Right now, one idea I have for this is to have the database trigger
> create a file in a file system that's shared by the database server and
> the application servers and have the web apps check for the existence
> of this file to know whether to update the cache.  It feels ugly and
> means hitting a networked file system a lot but it seems like it should
> work and it seems like it should not be as bad as hitting the database
> constantly for something that doesn't change very often.
> I'd rather have the database send a message somehow to the web app that
> it needs to update its cache of the data.  Any suggestions?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message