----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Nope. I won't agree. SingleThreadModel is Thread-Safe - or at least
considered to be so (I've checked with this FAQ and API), however it's very
resource consuming (STMServlet Pools, etc.).
Anyway, does the Connection Pool allow the concurrent use of Prepared
Statements? (I just wish to have Sevlets to initialize connection &
PreparedStatements in init() method and then use 'em in doGet() & doPost() )
Sorry for slightly off-topic.
----- Original Message -----
From: Brevsville Administrator <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Sent: Monday, August 28, 2000 5:27 PM
Subject: Re: It's not recommended to use SingleThreadedMode Servlets inJSSI
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Alexey
>
> I think you are misunderstanding SingleThreaded Model (STM). STM does not
> guaranteee thread safety, it relates only to the loading of servlet
> classes. Check the FAQ or java.sun.com for a detailed discussion on this
> topic.
>
> Chris
>
>
> On Mon, 28 Aug 2000 17:33:48 +0400, Alexey Maksakov wrote:
>
> >----------------------------------------------------------------
> >BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> >WHEN YOU POST, include all relevant version numbers, log files,
> >and configuration files. Don't make us guess your problem!!!
> >----------------------------------------------------------------
> >
> > Is subj. still takes place in ApacheJSSI?
> >
> >If it so, can anybody advice how to organize correct work with database
> >connections
> >(using JDBC2.1) when you plan to have heavy request load on your
servlets.
> >With general servlets I found SingleThreadModel convinient to run
concurrent
> >database queries
> >(from different servlets) (By the way - is this approach correct? or I
will
> >have perfomance/stability problems?), however, I fear that such a way is
> >impossible in JSSI.
> >
> > Any ideas?
> >
> >
> >
> >--
> >--------------------------------------------------------------
> >Please read the FAQ! <http://java.apache.org/faq/>
> >To subscribe: [EMAIL PROTECTED]
> >To unsubscribe: [EMAIL PROTECTED]
> >Search Archives:
> ><http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> >Problems?: [EMAIL PROTECTED]
> >
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]