• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java main and system setproperty

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am retrieving emails from a mail box using pop3 over SSL. For that purpose I am setting a truststore variable as a system property.



Everything works fine.
But lets say that, in my current executing thread, this parameter needs to be altered runtime, to, Say to another certificate file.



The program fails to pick up the new certificate file and still refers to the one set the first time.!

I see that this property is being set only once on program initiation. I have to restart the program for any modification to take place.

Any subsequent modification is not being considered.
Is this how this was designed to work or am i missing something?

Any help is appreciated ....
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic