• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

system properties / certificate settings per thread

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic