Hi Brian,

  I think what you want to do is just stopping and/or starting
a specified service.  How do you like to do (re-)deploy and
(re-)undeploy by the snipped code ?

<snip>
  final String wsddFilename = "deploy.wsdd";

  AdminClient adminClient = new AdminClient();
  try {
      adminClient.process(wsddFilename);
  } catch (Exception e) {
      // Exception handling is here
  }
</snip>

Please note that it doesn't mean a Java class updating of
the specified service.

Thanks,

---
 Toshi (Toshiyuki KIMURA)
 Java Community Process: JSR-224 Expert Group Member
 Apache Axis Committer : Toshi <[EMAIL PROTECTED]>

 R&D Headquarters
 NTT DATA Corporation

-----Original Message-----
From: Brian Dillon (ext. 944) [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 8:22 PM
To: '[EMAIL PROTECTED]'
Subject: Service Control : Stopping/Starting

Hi,

Is there some way of stopping and starting a particular service
programatically. I understand from looking through the API that there are
calls;

handlers.soap.SOAPService.enableTransport(HTTP)
handlers.soap.SOAPService.disableTransport(HTTP)

So my question is how to I get a reference to this SOAPService handler since
I don't have direct access to the running AxisServer ? Is it possible to get
access statically or do I need to create a new instance of the AxisServer ?

Is there a better way of starting and stoping specific services ?

Thanks,

Brian

Reply via email to