Hi,
I don't want to go down the route of deploy and undeploy because of the need
for wsdd files. I want to present a JMX interface to list the services and
then provide the ability to stop/suspend and restart/resume the service if
required.
This seems to be possible usint the SOAPService handler but I can't see how
I can get a reference to this object from outside Axis. Should I be calling
new AxisServer() everytime I want to perform something like this or is there
a way of getting the current instance ?
Brian.
-----Original Message-----
From: Toshiyuki Kimura [mailto:[EMAIL PROTECTED]
Sent: 11 June 2004 04:52
To: [EMAIL PROTECTED]
Subject: Re: Service Control : Stopping/Starting
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
**********************************************************************
The information contained in this e-mail is confidential, may be privileged and is
intended only for the user of the recipient named above. If you are not the intended
recipient or a representative of the intended recipient, you have received this e-mail
in error and must not copy, use or disclose the contents of this e-mail to anybody
else. If you have received this e-mail in error, please notify the sender immediately
by return e-mail and permanently delete the copy you received. This e-mail has been
swept for computer viruses. However, you should carry out your own virus checks.
Registered in Ireland, No. 205721. http://www.FINEOS.com
**********************************************************************