Re: creation of application wide objects

2000-12-21 Thread Alex Fernández
I did it and quite successfully. Intergate wrote: Alex, Were you successful with this auto loading solution? It is something that I have been searching for... I seem to remember a message a while back from someone on the list that indicated that the load-on-startup

RE: creation of application wide objects

2000-12-21 Thread Kitching Simon
-Original Message- From: Peter Brandt-Erichsen [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 21, 2000 1:46 AM To: [EMAIL PROTECTED] Subject: Re: creation of application wide objects My apologies for the confusion and also for misquoting David and you. So

RE: creation of application wide objects

2000-12-21 Thread Alexander Telnikoff
Not directly related to tomcat, but: Has anybody played with Sun's WebStart 1.0? Any impressions? Alexander

Re: creation of application wide objects

2000-12-21 Thread Craig R. McClanahan
Alistair Hopkins wrote: I also have lots of this sort of nonsense. My planned solution is to have only one servlet. This will act as a broker to load 'logic modules', which are invoked thru' the url with xtra path info: http://myServer/myServlet/myModule?yada=yadafoo=bar This has lots

Re: creation of application wide objects

2000-12-20 Thread Matt Goss
don't forget you need the load-on-startup1/load-on-startup tag Alex Fernández wrote: I think I can answer that. In web.xml (inside webapps/yourapp/web-inf) you just have to declare your servlet, like this: servlet servlet-name backend.servlets.Authorizator

Re: creation of application wide objects

2000-12-20 Thread Matt Goss
:) no problem Alex Fernández wrote: Yep, that's right. So it should be: servlet servlet-name backend.servlets.Authorizator /servlet-name servlet-class backend.servlets.Authorizator /servlet-class

Re: creation of application wide objects

2000-12-20 Thread Intergate
] [EMAIL PROTECTED] Date: Wednesday, December 20, 2000 6:53 AM Subject: Re: creation of application wide objects Yep, that's right. So it should be: servlet servlet-name backend.servlets.Authorizator /servlet-name servlet-class

Re: creation of application wide objects

2000-12-20 Thread craig mcclanahan
Intergate wrote: Alex, Were you successful with this auto loading solution? It is something that I have been searching for... I seem to remember a message a while back from someone on the list that indicated that the load-on-startup 1

Re: creation of application wide objects

2000-12-20 Thread craig mcclanahan
Peter Brandt-Erichsen wrote: My apologies for the confusion and also for misquoting David and you. So, it is possible to specify a set of servlets to load on startup. That's awesome. How do I point Tomcat to auto load servlets on start up, that are defined in my custom contexts? Does

Re: creation of application wide objects

2000-12-20 Thread Peter Brandt-Erichsen
Thank you very much! -Original Message- From: craig mcclanahan [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Wednesday, December 20, 2000 5:00 PM Subject: Re: creation of application wide objects Peter Brandt-Erichsen wrote: My apologies for the confusion and also

RE: creation of application wide objects

2000-12-20 Thread David Rees
From: Intergate [mailto:[EMAIL PROTECTED]] Also, David wrote this morning that Tomcat 3.2.1 does not read the web.xml file and that it shouldn't even be included in the distribution anymore?? The global web.xml is not read in ($TOMCAT_HOME/conf/web.xml), but the web application's web.xml is

creation of application wide objects

2000-12-19 Thread Guillaume Barreau
Dear Tomcat users, What is the best way to create some objects which are going to be available application-wide to a bunch of servlets from the same web-app? Or in other words, is there an equivalent of an init() method but for the application as a whole? At the moment, I am having to clutter

Re: creation of application wide objects

2000-12-19 Thread romain
On Tue, 19 Dec 2000, Guillaume Barreau wrote: Dear Tomcat users, What is the best way to create some objects which are going to be available application-wide to a bunch of servlets from the same web-app? Or in other words, is there an equivalent of an init() method but for the

Re: creation of application wide objects

2000-12-19 Thread Alex Fernández
Hi folks! I'm having the same problem, but with servlets. To summarize, I want to have some kind of init() method, to perform some startup tasks, but for the whole application. Right now, in every servlet's init() method I must call a singleton to perform the job. So the problem is, can I do

RE: creation of application wide objects

2000-12-19 Thread Alistair Hopkins
ith it. -Original Message- From: Alex Fernández [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 1:27 PM To: [EMAIL PROTECTED] Subject: Re: creation of application wide objects Hi folks! I'm having the same problem, but with servlets. To summarize, I want to have some kind

RE: creation of application wide objects

2000-12-19 Thread romain
On Tue, 19 Dec 2000, Alistair Hopkins wrote: I also have lots of this sort of nonsense. My planned solution is to have only one servlet. This will act as a broker to load 'logic modules', which are invoked thru' the url with xtra path info:

Re: creation of application wide objects

2000-12-19 Thread Alex Fernández
That looks nice. Thanks. Alex. [EMAIL PROTECTED] wrote: So why don't you just shortcut this approach: make a dummy servlet that will load at startup ( is a configuration job) that instantiates the Application objects. You don't need a broker (at least not for this problem) Sloot.

RE: creation of application wide objects

2000-12-19 Thread Alistair Hopkins
, December 19, 2000 1:56 PM To: [EMAIL PROTECTED] Subject: RE: creation of application wide objects On Tue, 19 Dec 2000, Alistair Hopkins wrote: I also have lots of this sort of nonsense. My planned solution is to have only one servlet. This will act as a broker to load 'logic modules', which

RE: creation of application wide objects - Singleton?

2000-12-19 Thread Bygrave, Robin
[mailto:[EMAIL PROTECTED]] Sent: 19 December 2000 12:13 To: [EMAIL PROTECTED] Subject: creation of application wide objects Dear Tomcat users, What is the best way to create some objects which are going to be available application-wide to a bunch of servlets from the same web-app? Or in other words