WSO2 Carbon based servers comes with a rich set of features which can be installed on top of any WSO2 products. This feature makes it easy for the users to install different features on the same WSO2 server and use that server for all your enterprise SOA requirements. As an example, a user can install WSO2 DSS features on top of WSO2 ESB to enable distributed transactions inside the WSO2 ESB itself.
You can find more information about provisioning and feature installation from the below link.
http://wso2.com/projects/carbon/provisioning-wso2-carbon-with-equinox-p2/
This blog post describes about how to restore your WSO2 server in to a previous state once you have installed a lot of features in your system. Sometimes installing different features with incompatible versions (This happens if you install features manually by copying jar files) may corrupt your WSO2 server and it will fail to start. In this kind of scenario you may need to restore your server in to a previous state in which you have been working successfully.
You can find more information about provisioning and feature installation from the below link.
http://wso2.com/projects/carbon/provisioning-wso2-carbon-with-equinox-p2/
This blog post describes about how to restore your WSO2 server in to a previous state once you have installed a lot of features in your system. Sometimes installing different features with incompatible versions (This happens if you install features manually by copying jar files) may corrupt your WSO2 server and it will fail to start. In this kind of scenario you may need to restore your server in to a previous state in which you have been working successfully.
If you cannot start the server after an unsuccessful feature installation, use the following steps to revert to a previous installation:
- Start your product with the 
-DosgiConsolesystem property. - Once the server is started, type the following command:
osgi> getInstallationHistory
You will get the following list of states:1376883697814August19,2013at09:11:37IST1376883697957August19,2013at09:11:37IST1376883700725August19,2013at09:11:40IST1376883701385August19,2013at09:11:41IST1376883704884August19,2013at09:11:44IST1376883712770August19,2013at09:11:52IST1376883715952August19,2013at09:11:55IST1376883743493August19,2013at09:12:23IST1376933879416August19,2013at23:07:59IST1376940017503August20,2013at00:50:17IST - Check what features are installed and uninstalled in a given state, by entering the following command:
osgi> getInstallationHistory<timestamp>For example:osgi> getInstallationHistory 1376933879416The output will be as follows:-- Installed features inthisconfiguration-- Uninstalled features inthisconfigurationWSO2 Carbon - Service Management Feature4.2.0WSO2 Stratos - Deployment Features2.2.0WSO2 Stratos - Common Composite Feature2.2.0WSO2 Stratos - Usage Agent Feature2.2.0WSO2 Stratos - Throttling Agent Feature2.2.0WSO2 Stratos AppServer - Dashboard UI Features2.2.0WSO2 Stratos AppServer - Dashboard UI Features2.2.0 - Decide to which state you need to revert the system to, and thereafter use the following command:
osgi> revert <timestamp>
For example:osgi> revert 1376933879416
The output will be as follows:Successfully reverted to1376933879416Changes will get applied once you restart the server. 
Comments
Post a Comment