• 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

Mail Session...java.mail

 
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all:
I want to know the difference between getting the defualt Session instance vs. getting a new instance. The api says that the defualt instance is shared among all the applications running in the same JVM. Is that mean if called this line: Session session = Session.getDefaultInstance(props, null);
and then in another application someone else reset the the security parameters on the defualt session, then my application will not function.
which is more secure Session.getInstance() or Session.getDefualtInstance()
and why?
I have been looking for an answer, and not one has any clue.
any help is greatly appreciated.
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm looking for an answer to this question my self...if you find something please share it with us.
 
reply
    Bookmark Topic Watch Topic
  • New Topic