<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1595" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>I have an enterprise
application deployed on JBoss which has to invoke Remote
Method</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>using Java
RMI.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>It is working fine
if I set the policy file and security manager on the command line, by
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>setting JAVA_OPTS in
run.bat of JBoss.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>But I am getting
AccessControlException while trying to set policy file
programmatically</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>by accessing the
System property java.security.policy.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>Does anyone had
similar problem and found the resolution?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>I just want to
confirm, </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>Is it the only way
to set the policy and security manager on the command line</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>while running under
JBoss?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>I am using JBoss
4.0.2 and JDK 1.5.0_06.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=954114111-20082007>Thanks &
Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007>Srinivas.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=954114111-20082007></SPAN></FONT> </DIV></DIV>
<BR>
________________________________________________________________________<BR>
This e-mail has been scanned for all viruses by MessageLabs.<BR>
<BR>
To learn more about Singularity's business process management solutions and services please visit:<BR>
www.singularity.co.uk <BR>
www.singularity.us.com<BR>
Singularity operates globally through its offices in New York, London, Singapore, Ireland and India. Singularity Limited is incorporated in the United Kingdom with Registration Number NI 31519 and its Registered Office at 100 Patrick Street, Derry, BT48 7EL, United Kingdom.<BR>
</BODY></HTML>