Hello,

I'm new to the JSP and JAVA world, and I'm trying to gain an =
understanding of how different clients are handled, and potential =
dangers of having several simultaneous requests.

I get the concept of JSPs compiled into a servlet, and that they can =
handle several simultaneous requests by spinning off separate threads. =
My understanding so far is that everything that ends up in the service =
method is local to the request, but class instances of variables and =
methods are shared among all threads, right?

Now, with the inclusion of JavaBeans in the JSP you can set the scope to =
session. This means that one instance of this JavaBean is dedicated to =
the client for the session. Is this a full flegded java object with no =
chance of conflicts between instances for different clients? Are there a =
pool of the JavaBeans in the JSP engine/container?

If I create another object from some Java class within the JavaBean, =
will that cause any problems for me? Will there be any conflicts between =
clients if I have class variables in this class? Will the JSP =
engine/container instantiate an object for each request or will there be =
some kind of pooling?

Thanks for any inputs,

Roger Kjensrud

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to