Forums Register Login

Mail Session...java.mail

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
I'm looking for an answer to this question my self...if you find something please share it with us.
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 617 times.
Similar Threads
Question on page 53: SCJP Sierra/Bates
Default constructor
Viewing a list of all active users
Loops
Help me please, JavaMail
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:51:36.