How can I start the Equinox OSGi frame with Java 2 Security?Does it work? [message #72728] |
Thu, 31 August 2006 05:18  |
Eclipse User |
|
|
|
hi,folks
I know I can start the Equinox framework with Security using below
command;
<<<<<<<<<<<<<<
java -jar org.eclipse.osgi_3.1.0.jar -console
<<<<<<<<<<<<<<
But now I want to learn the Security of the Equinox, so I start the
framework by below command:
<<<<<<<<<<<<<<<<<<
java -Djava.security.manager -Djava.security.policy=c:\osgi\java.policy
-jar org.eclipse.osgi_3.2.0.v20060328.jar -console
<<<<<<<<<<<<<<<<<<
I assign the AllPermissions for the org.eclipse.osgi_3.2.0.v20060328.jar
file in the java.policy file. Dose this right?
If I want to install a Bundle to this framework which register a server to
the framework, need I set the ServicePermission(Register) for that Bundle
in the java.policy file.
When I do this, it looks like the OSGi Security doesn't take effect. Can
you help me? This problem really bother me a lots.
Best Regards!
Thanks!
yangxfei@cn.ibm.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.03491 seconds