Corbett,
For 2)
Not sure what you're using for a server, but if you're using Tomcat you can
implement the LifecycleListener interface by doing something like this:
package mycompany.mypackage;
import org.apache.catalina.LifecycleListener;
import org.apache.catalina.LifecycleEvent;
public class MyService implements LifecycleListener
{
// other methods here as needed
// respond to lifecycle events
public void lifecycleEvent(LifecycleEvent event)
{
if (event.getType().equals("start"))
{
//do initialization stuff here
}
}
}
You'll need to add the listener in your server.xml file so that tomcat knows
to call it:
<Context path="/axis" docBase="axis" debug="0" reloadable="true">
<Listener className="mycompany.mypackage.MyService"/>
</Context>
This has worked good for me, but there may be other ways to accomplish what
you want to do.
Mike
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 3:34 PM
Subject: passing arbitrary properties to a service?
> Hello all...pardon if my question(s) are naive; I just have been playing
> around with this as of today (I like what I see though!).
>
> What I'm trying to figure out is:
>
> 1) How to pass arbitrary properties to a service; WSDD doesn't seem
> too documented (or are there docs around WSDD that I don't see). To be
> specific, I'm trying to pass the fully qualified path to a properties file
> into the service.
> 2) A way to do a bunch of up front initialization for a service that
> would ideally happen before the first client request happens. In my case,
> I would like to get at the aforementioned properties file and fire up this
> big API I'm wrapping...spinning it up is perhaps 30-45 seconds of
> processing. I'd like to be able to get at this properties file in some
> kind of initializer for the service and 'spin it up' such that when the
> first request comes in, it's ready to go.
>
> ---
> Corbett J. Klempay
> Trilogy
> 512.874.5176 (W) | 512.750.1372 (C)
> [EMAIL PROTECTED]
>
>