Following are the Q's:
How can storing session information in a Session Bean be more scalable over storing session information in HttpSession?
Choice 1
Session Beans can survive a server crash.
Choice 2
Session Beans can be activated/passivated.
Choice 3
Session Beans can use container managed persistence.
Choice 4
Session Beans can be used by multiple client threads.
Choice 5
HttpSession requires use of cookies or URL rewriting.
I think 5 and 3 are correct. which is a better ans?
===================================
What is the importance of using design
patterns in
J2EE applications?
1 Design patterns increase code duplication.
2 Design patterns make applications architectually robust in the long-term.
3 Usage of design patterns is mandated by J2EE 1.4 specification for web and business logic tiers.
4 Design patterns reduce the amount of code developers would have to write.
5 Design patterns provide better compatibility with other application servers.
I think 4 but 2 is also good choice???