• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mail Session...java.mail  RSS feed

 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • 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.
 
Sergiu Truta
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!