Why don't you look at a struts application?  They exist, and all 
applications with Tomcat do this.

At 11:42 AM 9/3/2002 -0700, you wrote:
>Interesting.  I was aware of the application scope option which is cool ...
>but not exactly what I was looking for.  Running a servlet onStartup is an
>intriquing suggestion though.  I didn't know you could do that....I think
>that's what I'm looking for!  :)
>
>Cool...I'm going to read more about it.  Do you know the syntax of the top
>of your head for specifying an onStartup servlet in the web.xml file?
>
>Thanks for your help.
>
>Neal
>
>
>-----Original Message-----
>From: Barney Hamish [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 03, 2002 2:14 AM
>To: 'Tomcat Users List'
>Subject: RE: global.jsa
>
>
>Why don't you just declare the object you want to use as having application
>scope? That way the first time you use it it will be initialized?
>
>Alternatively you can specify servlets that should be run on start-up in the
>web.xml if you want some kind of java daemon running.
>
>Hamish
>
> > -----Original Message-----
> > From: neal [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 03, 2002 10:56 AM
> > To: Tomcat Users List
> > Subject: RE: global.jsa
> >
> >
> > Thanks.
> >
> > No global.jsa, eeh?
> >
> > The web.xml is a good way to go if you have flat variables
> > that you want
> > placed into the application object ... but can you instantiate objects
> > there?  Can you specify scope of those objects or will it presume
> > application scope?
> >
> > THanks.
> > Neal
> >
> >
> > -----Original Message-----
> > From: Barney Hamish [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 03, 2002 1:30 AM
> > To: 'Tomcat Users List'
> > Subject: RE: global.jsa
> >
> >
> > You can use the WEB-INF/web.xml to similar effect or you can
> > also declare
> > objects to have application scope, then you have a global
> > object that you
> > can access anywhere.
> > Hamish
> >
> > > -----Original Message-----
> > > From: neal [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 03, 2002 10:15 AM
> > > To: Tomcat Users List
> > > Subject: global.jsa
> > >
> > >
> > > Is there such a thing as a global.jsa file in Tomcat?
> > >
> > > I first saw this concept (an idea taken from ASP's
> > > global.asa) implemented
> > > in JRUN.
> > >
> > > If there is a global.jsa, does anyone know of any docs on
> > > this?  If not, is
> > > there an alternative? The reason I would want to use this is
> > > to instantiate,
> > > populate, and cache a few objects upon startup of the
> > application.  If
> > > Tomcat does not provide a global.jsa...does anyone know how
> > > otherwise to
> > > achieve the goal?
> > >
> > > Thanks.
> > > Neal
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to