It completely removes the service group from the system, including the
deployed file.

Azeez

On Jan 24, 2008 8:49 PM, Nadir Amra <[EMAIL PROTECTED]> wrote:

> Is there a way to delete the service from axis2 engine memory - that is,
> delete the class loader for the service?  Is that what deleteServiceGroup
> does?
>
> Nadir K. Amra
>
>
> "Afkham Azeez" <[EMAIL PROTECTED]> wrote on 01/24/2008 12:36:02 AM:
>
> > Here is how we've done this in WSAS. We've written Admin services
> > called ServiceAdmin[1] & ServiceGroupAdmin[2]. So a WS client can
> > call these admin services to stop/start services and also remove
> services.
> >
> > Here is the relevant code snippet from ServiceAdmin
> >     public void stopService(String serviceName) throws Exception {
> >         AxisService axisService = getAxisConfig().
> > getServiceForActivation(serviceName);
> >         if (axisService == null) {
> >             throw new Exception("Invalid service name " + serviceName);
> >         }
> >
> >         try {
> >             getAxisConfig().stopService(serviceName);
> >         } catch (AxisFault e) {
> >             String msg = "Cannot stop service " + serviceName;
> >             log.error(msg, e);
> >             throw new Exception(msg);
> >         }
> >     }
> >
> > For deleting services, see the
> > ServiceGroupAdmin#deleteServiceGroup(String serviceGroupName)  method.
> >
> > In these cases, you could get hold of the AxisConfiguration as follows:
> >
> > MessageContext.getCurrentMessageContext().getRootContext().
> > getAxisConfiguration()
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Afkham Azeez

http://azeez78.blogspot.com
http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Reply via email to