Hi,
I attached the patch with the implementation of persistent configuration in jira http://issues.apache.org/jira/browse/AXIS2-703?page=all. Please commit it to the url:
https://svn.apache.org/repos/asf/webservices/axis2/archive/java/scratch/Axis_Management_module
The org.apache.axis2.management.interfaces.ws.AxisConfigurations service has two methods to import and export configuration.
public OMElement getConfiguration()
public OMElement setConfiguration(OMElement msgElement) throws Exception
The stub org.apache.axis2.management.interfaces.ws.stubs.AxisConfigurationsStub provides following methods:
public void saveConfigurationToFile(String fileName)
public void loadConfigurationFromFile(String fileName)
Once the system is deployed, remote management applications can call above methods in the stub to save configurations of remote engines to an xml file and to load configrations from xml files to remote engines.
Please give comments...
Regards,
Chathura.
On 5/8/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
+1 to #1. Let's see how it works then decide on #2.
thanks,
dims
On 5/7/06, Chathura Ekanayake <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I am implementing a mechanism to make the axis2 configurations persistent
> after system restarts.
>
> This is done by exporting the whole configuration as an xml file and loading
> it after the restart.
> This can be done by two methods.
>
> (1) A remote management application can retrieve the configuration xml and
> save it in the local machine. Then it can apply that configuration back to
> the remote engine after the restart. (of course, the management application
> can apply the retrieved configuration to any remote engine)
>
>
> (2) Axis2 engines can save its entire configuration in thier local disk as
> an xml file (e.g. in WEB-INF\conf folder). Then the management system can
> read and apply that configuration at the startup.
>
>
> In this way, we can make the configuration made via web admin or the
> management API persistent after the system restarts.
> I have already implemented method (1) and currently working on method (2). I
> think we can have both of them active at the same time.
> Please give your ideas about this.
>
> Regards,
>
> Chathura.
--
Davanum Srinivas : http://wso2.com/blogs/
