[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: global.jsa
might want to synchronize that method too.
eric
----- Original Message -----
From: Nicolás Lichtmaier <nick@debian.org>
To: Carson Reynolds <carsonr@media.mit.edu>
Cc: <gnujsp@gjt.org>; <vinny@klomp.org>
Sent: Friday, July 09, 1999 8:19 PM
Subject: Re: global.jsa
> On Fri, Jul 09, 1999 at 07:49:34PM -0400, Carson Reynolds wrote:
> > I am attempting to setup some DB connection-pooling code for an
application
> > that I'm writing with GNUJSP. Does GNUJSP support "global.jsa" files,
and if
> > it doesn't how would one go about launching code at server start, and
having
> > JSP files access objects instantiated in that code.
>
> I don't know what a JSA is, but you can do...
>
> class MyObject
> {
> static MyObject instance = null;
> public static MyObject getInstance()
> {
> if(instance==null)
> instance = new MyObject();
> return instance;
> }
> }
>
> ...so the first jsp that request an instance of this object creates it...