Just make sure to synchronize all the methods you'll be calling from
different places.

[ Matthias Carlsson ]
[ Programmer (Java, XML/XSL, CGI/Perl, HTML/JS) ] [ Web Designer ]
[ E-Mail : [EMAIL PROTECTED] ] [ ICQ: 1430647 ]

> -----Ursprungligt meddelande-----
> Fran: A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology. [mailto:[EMAIL PROTECTED]]För
> Tomas Zeman
> Skickat: den 27 februari 2001 22:52
> Till: [EMAIL PROTECTED]
> Ämne: Servlets and singelton class
>
>
> Hi all,
>
> I wan to create a singelon class, which will create a connection
> pool to the
> database on first init and then it will have function to get and
> return the
> connection.
>
> I want to use it in jsp pages which will work with database.
>
> Could anybody tell me, what will happend if two different jsp pages will
> tall this singelton in the same time ?
> or what is the better way of doing this ?
>
>
> Thnaks a lot
> Tomas Zeman
>
> -------------------------------
> www : http://moje.triky.cz
> e-mail : [EMAIL PROTECTED]
>
> __________________________________________________________________
> _________
> 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

Reply via email to