Hi J�rg --

I'm using the servlet context initialization hooks (see the servlet
spec) to get a number of services initialized before the first request.
Works great.

You can to add entries of the form:

    <listener>
      <listener-class>
          com.alepsis.mfg.ft.webapps.InitializationManager
      </listener-class>
    </listener>

to the web.xml file, where the specified class implements
javax.servlet.ServletContextListener.  Then the servlet engine
will call your listener when the context is being set up, and just
before it's destroyed.

        Gary

On Wed, 12 Feb 2003, at 14:07 [+0100], "Schaible, J�rg" ([EMAIL PROTECTED]:

> Hello,
>
> independent of the new bootstrap code, I'm asking myself, how to initialize Merlin 
>properly running in a J2EE server (currently Tomcat). I will have to parametrize the 
>Merlin home directory to the webapp's home. Looking into the Fortress servlet 
>example, they initialize anything within the init of the servlet, but this will be 
>called at the first request. If Merlin could not properly be initialized, I would 
>like to have the webapp failing much earlier.
>
> Regards,
> J�rg
>
>
> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:05 PM
> To: Avalon framework users
> Subject: Re: [Newbie] Running Merlin
>
>
>
> J�rg:
>
> I'm right in the middle of cleaning this up.  Unfortunately the
> documentation concerning Merlin bootstrap is out of date.  I've just
> committed some new content addressing this (seperation of bootstrap from
> Merlin core - see avalon-sandbox/merlin-bootstrap).  I've also updated
> Merlin core (but not committed yet) to remove content dealing with URL
> management that was causing conflicts with embedded deployment in Tomcat.
>
> I should have the updates committed in a few hours. This will include
> elimination of dependence on framework, logkit and excalibur CVS builds.
>
> Cheers, Steve.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

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

Reply via email to