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

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

I also want to update the services.xsd file so that this entry is added:

                              <xs:attribute name="activate" type="xs:boolean" 
use="optional"/>

However, I am unsure where to update the file.  I have updated it in the 1.2 
branch:

 xdocs/@axis2_version_dir@/resources/schemas/services.xsd

But I am unsure if I need to update something in the trunk.  Please let me know 
if I do and which directory.




> 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
>             Fix For: 1.2, nightly
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to