[Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi, I need to write a test case to get the first request to a deployed web app after the web app went to ghost mode or unloaded. how should i enable ghost mode, web app idle time in test environment? Thank you. -- Shashika Prabath Karunatilaka, Software Engineer, WSO2, Inc: http://wso2.com/

Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Saneth Dharmakeerthi
Hi Shashika, Small correction on CarbonTestServerManager and MultipleServersManager. As it shows in the code block and reference links in [2] and [3] in my previous mail, you have to create a instance of CarbonTestServerManager with your required parameters and using MultipleServersManager you

Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi Saneth, Thanks for the info, i will try with the steps you mentioned On Wed, Mar 25, 2015 at 7:52 AM, Saneth Dharmakeerthi sane...@wso2.com wrote: Hi Shashika, Small correction on CarbonTestServerManager and MultipleServersManager. As it shows in the code block and reference links in

Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Saneth Dharmakeerthi
Hi Shashika, - Only way to enable the Ghost mode in test environment is to changing the repository/conf/carbon.xml. You have to copy the edited carbon.xml at @BeforeClass method and restore the carbon.xml at @AfterClasss method. You can do this task by using applyConfiguration methods in

Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Mahesh Chinthaka
Hi Shashika, You can enable Ghost mode deployment from setting the value 'true' in repository/conf/carbon.xml GhostDeployment Enabled*true*/Enabled PartialUpdatefalse/PartialUpdate /GhostDeployment And to set the webapp unloading time u can do following, open wso2server.sh

Re: [Dev] Enabling ghost mode in test environment

2015-03-24 Thread Shashika Karunatilaka
Hi Mahesh, AFAIK we cant enable ghost mode in test environment by editing carbon.xml. On Tue, Mar 24, 2015 at 10:02 PM, Mahesh Chinthaka mahe...@wso2.com wrote: Hi Shashika, You can enable Ghost mode deployment from setting the value 'true' in repository/conf/carbon.xml GhostDeployment