This is a common need that is not just related to WSO2 AS. This can be
prevented by using the Security Manager [1] that is provided with Java
runtime. I believe Stratos already uses this but not the stand-alone
products. This can be done programatically too.

[1]
http://docs.oracle.com/javase/tutorial/essential/environment/security.html
[2] http://jroller.com/ethdsy/entry/disabling_system_exit


On Thu, Jun 20, 2013 at 11:14 AM, Vijayaratha Vijayasingam
<[email protected]>wrote:

> Hi all;
> We allow tenants to deploy their applications in  AS..
> Say, if an application calls system.exit(), it will affect the server and
> other tenants will face issue.
> What is the mechanism we have in place, to avoid such calls?
>
> It seems a valid MT concern raised here[1]
>
> http://stackoverflow.com/questions/17211354/how-to-prevent-a-web-app-from-calling-system-exit-in-wso2
>
> Thanks
> --
> -Ratha
> mobile: (+94)755906608
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kasun Gajasinghe*
Software Engineer;
Development Technologies Team, WSO2 Inc.; http://wso2.com

 ,
*email: **kasung AT spamfree wso2.com

** cell: **+94 (77) 678-0813*
*linked-in: *http://lk.linkedin.com/in/gajasinghe

*
*
*blog: **http://kasunbg.org* <http://kasunbg.org>

*
twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>

*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to