wood burning stoves 2.0*
The moose likes Java in General and the fly likes system properties / certificate settings per thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "system properties / certificate settings per thread" Watch "system properties / certificate settings per thread" New topic
Author

system properties / certificate settings per thread

mahadev ramalingam
Greenhorn

Joined: Jan 15, 2002
Posts: 12
hi,

I've a client program which accesses a https url.
I set the certificate password settings using system.setproperty() method.
If I run the program in a multithreaded environment, the server validates the certificate credentials only for the first time. that is, for the first thread.

Since I need to simulate a realtime scenario,
I need to make the server check the credentials for every thread. any idea on how to do that?

I used a wrapper using runtime class by invoking new jvm for every thread. but, I can't run large number of threads that way.

had to use jdk1.4 and hence couldn't use System.clearProperty to re-set the properties in every thread.

I tried setting some other certificate credentials for other thread, but server doesn't check second time, from the same jvm.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: system properties / certificate settings per thread
 
Similar Threads
Properties/Settings - a design question
JSF scalability and performance issues... please help... important
Checking if db file exists a requirement?
Talking to HTTPS Server
https connection probs