You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Smith, Larry" <xl...@ti.com> on 2002/09/13 00:32:16 UTC

Passing Start-Up Parameters to a WEB Service

Is there any way to pass start-up parameters to a WEB Service running
under Axis?

I've tried adding an init() method, but it never gets invoked.

I've tried adding custom <parameter.../> entries to deploy.wsdd

We need a way to tell a WEB Service where to find various config
files and directories, which database to use, etc, when it starts up.

See the message thread for "Finding a WEB Service's Directory" for
info about the in-ability to determine the services "home" directory.

Since we can't portably derive the service's "home" directory, then the
ability to supply it with start-up parameters could be used to
accomplish the same task.

Thanks & Regards,
Larry


Re: Passing Start-Up Parameters to a WEB Service

Posted by Steve Loughran <st...@iseran.com>.
you can put config stuff into web.xml

Talking to a directory service (ldap/jndi) is widely recognised as better,
as you can change stuff on a live system without a rebuild.

----- Original Message -----
From: "Smith, Larry" <xl...@ti.com>
To: <ax...@xml.apache.org>
Sent: Thursday, September 12, 2002 3:32 PM
Subject: Passing Start-Up Parameters to a WEB Service


> Is there any way to pass start-up parameters to a WEB Service running
> under Axis?
>
> I've tried adding an init() method, but it never gets invoked.
>
> I've tried adding custom <parameter.../> entries to deploy.wsdd
>
> We need a way to tell a WEB Service where to find various config
> files and directories, which database to use, etc, when it starts up.
>
> See the message thread for "Finding a WEB Service's Directory" for
> info about the in-ability to determine the services "home" directory.
>
> Since we can't portably derive the service's "home" directory, then the
> ability to supply it with start-up parameters could be used to
> accomplish the same task.
>
> Thanks & Regards,
> Larry
>
>