Milesh Bhana

Greenhorn
+ Follow
since Feb 18, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Milesh Bhana

92%!!!

This site proved to be very helpful, and the Enthuware product is great. Both proved to be invaluable assets in getting this cert.

Next up. JPA and EJB exams.
I've worked with neither, any suggestions on which order I should attempt these in ?
12 years ago
that's pretty much correct.

you use value if you only want to specify a single URL pattern and no other attributes.

this is incorrect (can't use value with another attribute)
@WebServlet("/myServlet", asyncSupported=false)

value only
@WebServlet("/myServlet")

you have to do this if you want to use multiple attributes
@WebServlet(urlPatterns={"/myServlet"}, asyncSupported=true)

notice that i had to use URL patterns for a single value because i wanted multiple attributes.

hope this helps.
The Enthuware mock exam also states that setMaxInterval(0) will invalidate the session.

Can i assume this is an errata on their side too.
(Always assumed that theirs was pretty close to the real thing)
I'm supposed to be writing my Servlet/JSP exam on 23 December.

You guys think i should rather postpone and write the other one?

Objectives are exact, so i see no reason to do this, but just want to be sure.
I've noticed a discrepancy with this.

session.setMaxInactiveInterval(0);

HFSJ and Enthuware mock exams say using a value of 0 will immedately invalidate a session.

JEE6 API Javadoc:
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
An interval value of zero or less indicates that the session should never timeout.

I tried on tomcat and session stayed alive.

What gives?