Hi Dharshana,

Thank you for the reply.  What you have suggested does restart the server
and gets the job done. On further analysis, I was able to use the
applyConfiguration method too, to restart the server.

As the javadocs suggest

public void applyConfiguration(java.io.File sourceFile,
                               java.io.File targetFile,
                               boolean backupConfigFile,
                               boolean restartServer)
                       throws java.lang.Exception

the last argument does restart the server.

However, I was setting the wrong automation contexts.

I fixed it as follows,

automationContext = new AutomationContext("MB",
TestUserMode.SUPER_TENANT_USER);

Thanks,
-- 
*Darshana Akalanka Pagoda Arachchi,*
*Software Engineer*
*078-4721791*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to