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
-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
Not directly related to tomcat, but:
Has anybody played with Sun's WebStart 1.0? Any impressions?
Alexander
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
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
:) 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
] [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
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
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
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
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
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
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
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
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
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:
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.
, 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
[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
19 matches
Mail list logo