Talking about STM (as jon said:), I have a question ...
When I first started using servlets (and java), I used (the default)
"implements MultipleThreadModel" and started getting problems when 2 users
would "cross" the DB connection, i.e. one would open the query and the
other would take over it... I then realized that on this model the servlets
would be sharing the same "resource". So, I changed to SingleThreadModel to
avoid the problem and all worked just fine, but looks like it was not the
correct way to solve this problem.
Could anyone elaborate or give me a link, so I could get more information
about STMxMTM and how to work with both correctly?

Thanks

Rodrigo

Guenther Wieser wrote:

> Just to mention:
> When using SingleThreadModel, JServ loads 5 instances of a servlet when
> first instanciating it!
> This is a default setting, you can change that.
>
> Greg McCarty wrote:
> >
> > Thanks for the answer.  A little oblique, but I finally got it.
> >
> > GregM.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of jon *
> > > Sent: Thursday, April 15, 1999 4:36 PM
> > > To: Java Apache Users
> > > Subject: Re: Why is my servlet executed 5 times
> > >
> > >
> > > > [...] Returning the SingleThreadModel servlet.
> > >
> > > A better question is why are you using STM? ;-)
> > >
> > > -jon
> > >
> > >
> > >
> > > ----------------------------------------------------------------
> > > To subscribe:        [EMAIL PROTECTED]
> > > To unsubscribe:      [EMAIL PROTECTED]
> > > Archives and Other:  <http://java.apache.org/main/mail.html/>
> > > Problems?:           [EMAIL PROTECTED]
> > >
> >
> > ----------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Archives and Other:  <http://java.apache.org/main/mail.html/>
> > Problems?:           [EMAIL PROTECTED]
>
> --
> Guenther Wieser
> creative-it/Guenther Wieser Software KEG
> Student of Telematik at Graz University of Technology
> http://www.creative-it.com        mailto:[EMAIL PROTECTED]
> -> In A World Without Walls And Fences, Who Needs Windows And Gates? <-
>
> ----------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to