I think it's not possible... but I can't imagine why you need this.
i will explain to u why i need this..:)
I have a web application which is consuming HTTPS Web Service which is required client authentication. So, before I consume the web services I need to specify my keystore. EG, System.setProperty("javax.net.ssl.keyStore", "C:\Keystore");
My application require me to use different keystore based on user's selection. The problem is once I have changed the value of the keystore, JVM won't use it, it will still use the one I specify ealier. So, I suspect that once we already specify the system property, we won't be able to change it.
So, I come out with an idea to run different applications with it's own JVM so that every application will use it's own keystore.
Hope you understand what i'm trying to say....:)
If you need to use multiple keystores, you must create the keystore
programatically. Don't use javax.net.ssl.keyStore property.
You can find an example code here:
sorry for the late reply, jboss.com didn't notifies me when there is a reply..:(.
I will give it a try and get back to later..