posted 20 years ago
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.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle