A
Andy Fish
Hi,
I have two servlets in the same web app. For historical reasons, servlet A
does much of the initialisation, so must be initialised before servlet B can
run.
Given that they are in the same web app, am I guaranteed that they will both
be initialized before either is called?
if not, is there any way to programmatically initialize one from inside the
other, or to specify this in my web.xml? I know some servlet containers
support forced loading, but I want to assume as little as possible about the
configuration of the container.
I realise the best way is to abstract out all the common initialzation code
and call it from either, but I really don't want to open up a big can of
worms
many thanks
Andy
I have two servlets in the same web app. For historical reasons, servlet A
does much of the initialisation, so must be initialised before servlet B can
run.
Given that they are in the same web app, am I guaranteed that they will both
be initialized before either is called?
if not, is there any way to programmatically initialize one from inside the
other, or to specify this in my web.xml? I know some servlet containers
support forced loading, but I want to assume as little as possible about the
configuration of the container.
I realise the best way is to abstract out all the common initialzation code
and call it from either, but I really don't want to open up a big can of
worms
many thanks
Andy