On 10/4/10 6:45, Achim Nierbeck wrote:
Hi,

I asked this question in the karaf user mailing list but they told me this
would be the better place to ask :)
I have a special Problem I would like to solve with the SecurityManger. But
first the Problem I'm facing:
I have a bundle containing a third party legacy library I have to use.
This Library does call system.Exit(?) if it looses it's connection to a
corresponding server.
I know that this is really bad (actually mean) but the quickest way of
shipping around this problem is using a service wrapper which does a
restart.
But this is not a nice way of doing especially this system.exit forces a
hard shutdown :(
So I googled around and found that there is one solution for this, use a
security manager which disallows System.Exit.
Now the tricky part, how do I specify a securityManager just for this bundle
preventing it from using System.Exit?

Just to be clear, there is no way to specify a security manager for just a single bundle, it is specified for the entire JVM. This means once you set it, you will be running with security enabled, which usually entails a reasonable loss of performance.

-> richard

Thank you in Advance :)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to