Hi,
Can someone tell me why the servlet spec advises that programmers should
not synchronize any of the doXXX() methods or the service() method that
they override in their servlets? I have to take care of concurrency in
my application. How do I do it except synchronizing the method?

Basically, I have to query an Oracle database, which selects the
nextval() from a sequence. My problem is suppose two users make a query
at the same time from two different connections in the connection pool,
they may end up getting the same no. from the sequence.

Thanks for any help,
Arnab

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to