axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From neo qing <>
Subject RE: How control the service remotely
Date Wed, 07 Nov 2007 02:31:16 GMT

Hi Keith:
            I read some sources of WSO2 WSAS and I find a class can help me,I write down like
ConfigurationContext configContext=ConfigurationContextFactory.createConfigurationContextFromFileSystem("C:\\wso2\\repository","C:\\wso2\\conf\\axis2.xml");
 AxisService service=configContext.getAxisConfiguration().getService("echo");  service.setActive(true);
I run it with JUnit, the result is OK,but I return to the console,I find that the status of
the service has not been changed!
who can help me on this?

Date: Tue, 6 Nov 2007 14:17:53 +0530From: keithgchapman@gmail.comTo: axis-dev@ws.apache.orgSubject:
Re: How control the service remotelyWSO2 WSAS manages services via deployed admin services.
Its an open source project so you can take a dip and have a look at it. Please have a look
at the admin module cause thats what will interest you.You can see details of the project
here also access the source code there.Thanks,Keith.
On 11/6/07, neo qing <> wrote: 

Hi everyone:             I want to control the service that deployed in the servlet container
with AXIS2, such as, list the services,stop,start the service,currently I take a unstable
approache that I post a request like 'axis-admin/deactive' to the target server, mostly it
is available but I do not think it is a good idea.              I have read the source of
AXIS2, I find a class named "org.apache.axis2.transport.http.AdminAgent", it can manage the
service,but it use a method like below ConfigurationContext  configContext = ConfigurationContextFactory.createConfigurationContext(new
WarBasedAxisConfigurator(config)); ……………… AxisService service = configContext.getAxisConfiguration().getServiceForActivation(serviceName);
               service.setActive(true); the variable 'config' is a instance of ServeletConfig
but I do not want to bind the function to the container because I want to expose the function
as a web service. the question is :How can I get the AxisConfigu
 ration instance and not depend on the ServerletConfig? or you can give me another good idea
about how to control the services remotely?thanks ! Any reply is appreciation!  neo

Discover the new Windows Vista Learn more! -- Keith ChapmanWSO2 Inc.Oxygen for Web Services
Discover the new Windows Vista
View raw message