• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session.getDefualtInstance() ...?

 
Hanna Habashy
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
I want know the diffrence between Sission.getDefualtInstance and Sission.getInstance. In java mail package
The documentation says that all application running on the same VM use the same default Sission. Wouldn't be a security hole?
If I want to create a utility mail class in one application, which one should I use the defuale or a new one?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to "Other Java APIs" which is where JavaMail questions go.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!