Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 60112 invoked from network); 18 Jun 2003 21:15:25 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 18 Jun 2003 21:15:25 -0000 Received: (qmail 3072 invoked by uid 97); 18 Jun 2003 21:17:49 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 3065 invoked from network); 18 Jun 2003 21:17:48 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 18 Jun 2003 21:17:48 -0000 Received: (qmail 58707 invoked by uid 500); 18 Jun 2003 21:15:09 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 58692 invoked from network); 18 Jun 2003 21:15:08 -0000 Received: from h-66-134-39-118.mclnva23.covad.net (HELO entheal.com) (66.134.39.118) by daedalus.apache.org with SMTP; 18 Jun 2003 21:15:08 -0000 Received: from zephyr (IDENT:e4gnV7FukIQGevPwl08obJM/8HFEdk2Q@localhost [127.0.0.1]) by entheal.com (8.11.6/8.11.2) with SMTP id h5ILFE918338 for ; Wed, 18 Jun 2003 17:15:14 -0400 Reply-To: From: "Jacob L E Blain Christen" To: "Tomcat Users List" Subject: RE: Singleton across multiple contexts Date: Wed, 18 Jun 2003 17:10:07 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <3EECB22D.70907@terra.es> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > I do have a database. Databases are supposed to store data, > aren't they? ;-) Yeah, which is why ... > Now seriously... My application includes a web interface to a "kind of" > workflow system. > > This component is the "workflow engine", which is in charge for > automatic (background) state changes and actions. When my > business/persistence logic changes a state, new potential tasks for this > "engine" arise. So it has to be notified (=called) from any context that > may change a state. ... you should use one here. You are describing state changes that need to happen in an atomic manner and "exist" in one and only one place. The semantics of db interactions are perfectly suited for what you are trying to do. -- Jacob L E Blain Christen Entheal LLC --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org