Hey!
Reads like a good start.
Sans adieu,
Danny Rubis
Stephen Casey wrote:
> I'm tired of looking through the archives. Sorry, if this has been discussed
> but, I can't find exactly what I'm looking for in there.
>
> Up until now all of my servlets have accessed 'public' data in our database
> using a userid and password hard coded in the servlet database connection. At
> this point I need to write an application that accesses 'proprietary' data.
> Database connections will authenticate according to the user's personal id and
> password. I'm thinking I will implement a SingleThreadModel and create the
Why do you feel you need SingleThreadModel? Typically you don't ever need
this.
>
> database connection using SSL (https://). Will this protect the data stream from
> unauthorized 'eyes'? Will other instances of the servlet be able to access the
> connection?
Good for logon and then only needed if data sent needs to be secure.
>
>
> I don't want them to have to go through a logon screen for each query so, I'm
> thinking I can keep the connection open and pass it to whatever classes the
> servlet calls.
Use the HttpSession interface.
> If the connection remains idle for more than 5 minutes I will
> close it. Again, will passing the connection allow unauthorized access to data ?
Not necessary.
>
>
> Do I have to implement SingleThreadModel or serialize the classes/connections in
> all classes used by the calling servlet?
Explain your question more, specifically 'serialize', why. Helper classes used by
the servlet, which as you
know are server-side, can just be instanciated.
>
>
> Does anyone see any 'holes' in this approach? Can you suggest a better strategy?
>
> Thanking you in advance,
> Stephen
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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