Title: Automatic deploying

I am trying to automatically deploy a web service when our webapp starts up. I have been using the following code without problem until it was installed at a customer site. I don't want to distribute a copy of server-config.wsdd because it has hard coded paths within it. Unfortunately, the problem I am getting is that 'enableRemoteAdmin' is false by default and when the code runs it thinks that its being deployed remotely. I think this is because the machine has multiple network cards. Anyway, I wanted to know if there is a way of deploying a web service programmatically within the current webapp that doesn't result in an http request.

This is the current code:
    Options opts = new Options(new String[] {"-lhttp://thehost/theapp/services/AdminService"});
    InputStream is = getInputStream("WebService.wsdd");
    AdminClient admin = new AdminClient();
    admin.process(opts, is);

Cheers.
Dave
[EMAIL PROTECTED]


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Reply via email to