Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Where to put my java.policy?
Where to put my java.policy? [message #546602] Tue, 13 July 2010 14:15 Go to next message
Mike Rumpf is currently offline Mike RumpfFriend
Messages: 10
Registered: July 2009
Junior Member
Hallo,

another question: In our OSGi application we are doing a lot of RMI. Therefore a java.policy file is needed for the security manager.

At the moment this file needs to be placed alongside the exe (after an product export) via the vm argument

-Djava.security.policy=java.policy

I would like to have the policy file inside one of my bundles. How can I achieve that?

Regards,
Mike
Re: Where to put my java.policy? [message #546684 is a reply to message #546602] Tue, 13 July 2010 18:12 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 437
Registered: July 2009
Senior Member
The java.policy property is expecting a path to a file which can be read very early in the VM startup. I don't see how you could reference a file contained in a bundle very easily.

The only way I could see how to do this was if your bundle was a directory bundle (opposed to a jar'ed bundle) and you pointed to the path to the file located inside the directory bundle located on disk. This is rather brittle though.

Tom.
Previous Topic:p2 ant tasks
Next Topic:Product export fails: exe does not start
Goto Forum:
  


Current Time: Thu Nov 27 23:33:38 GMT 2014

Powered by FUDForum. Page generated in 0.01954 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software