You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "nadir amra (JIRA)" <ji...@apache.org> on 2007/04/11 07:16:32 UTC

[jira] Commented: (AXIS2-2504) Have indication of active/inactive service in services.xml

    [ https://issues.apache.org/jira/browse/AXIS2-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487989 ] 

nadir amra commented on AXIS2-2504:
-----------------------------------

Forgot to add that if the attribute is missing, the default would be to activate the service.

> Have indication of active/inactive service in services.xml
> ----------------------------------------------------------
>
>                 Key: AXIS2-2504
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2504
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: deployment
>    Affects Versions: 1.1.1
>            Reporter: nadir amra
>         Assigned To: nadir amra
>
> The idea is to add an "activate" attribute in services.xml to the "service" element that indicates whether the service should be activated or not - i.e. a persistent property that will allow the AXIS2 engine to determine whether the service should be activated on startup.  In addition, if management APIs come to fruition that updates the services.xml file so that the state is changed from active to inactive and vice-versa, the AXIS2 engine can pick this up and activate/deactivate the service.  Again, in a persistent way. 
> The code needed to do this affects two Java files:
> DeploymentConstants.java -- simply to add attribute name "activate" and possible values for "true" and "false"
> ServiceBuilder.java -- a few lines to get the attribute and set the active flag via AxisService::setActive() for the service depending on the "state" attribute. 
> An example of  what the service element would look like:
> <service name="StockQuoteService" activate="true" scope="application" targetNamespace="http://quickstart.samples/">
> Before I make the changes and test it out, wondering if there are anything I am overlooking?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org