From: Sacha L. <sac...@co...> - 2001-05-16 19:48:44
|
Hello Lucian, > -----Message d'origine----- >=20 > Well, just to test i've written a simple client which does >=20 > try { > System.setSecurityManager(new > java.rmi.RMISecurityManager()); > } > catch (java.rmi.RMISecurityException exc) { > System.err.println("Security violation " + = exc.toString()); > } > Context ctx =3D getInitialContext(); //standard stuff > Object refEJB=3Dctx.lookup("FirstBean"); >=20 You should try this: System.setProperty ("java.rmi.server.codebase", = "http://TheJbossServer:8080"); System.setProperty ("java.rmi.server.useCodeBaseOnly", "true"); System.setProperty ("java.security.policy", "c:/policy.txt"); =20 System.setSecurityManager (new java.lang.SecurityManager()); i.e. do not forget the useCodeBaseOnly property and do not forget to = create a policy file (with all permission granged for testing purpose) This should then work. Cheers, Sacha |