Hello Hari:
Since
Session information is scoped only to the current web application (ServletContext), so information stored in one context will not be directly visible in another.
In the example servlet illustrated:
public class CatalogServlet extends HttpServlet {
public void init() throws ServletException {
BookDBFrontEnd bookDBFrontEnd = ...
if (bookDBFrontEnd == null) {
getServletContext().setAttribute(
"examples.bookstore.database.BookDBFrontEnd",
BookDBFrontEnd.instance());
}
}
...
}
In this case
Then the Session could only be as big as the number of Attributes and the size of all the attributes it stores via getServletContext().setAttribute(String, instance) method calls inside init();
Does this help???
Martin Gainty
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.
LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
_______________________________________________
>From: Hari Krishnan <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Please clarify the doubts..... >Date: Sun, 11 Aug 2002 05:06:13 -0600 >Received: from [192.18.99.108] by hotmail.com (3.2) with ESMTP id MHotMailBF1F938C00134136E85DC012636CCDAC0; Sun, 11 Aug 2002 04:20:50 -0700 >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid A29A8214D2; Sun, 11 Aug 2002 05:18:01 -0600 (MDT) >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2400046 for [EMAIL PROTECTED]; Sun, 11 Aug 2002 05:16:14 -0600 >Received: from swjscmail2.java.sun.com (swjscmail2.Sun.COM [192.18.99.108]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 3C1A04810 for <[EMAIL PROTECTED]>; Sun, 11 Aug 2002 05:06:14 -0600 (MDT) >Received: by swjscmail2.java.sun.com (Postfix) id 3DB5C2128E; Sun, 11 Aug 2002 05:07:56 -0600 (MDT) >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107]) by swjscmail2.java.sun.com (Postfix) with ESMTP id 118CA21235; Sun, 11 Aug 2002 05:07:56 -0600 (MDT) >From [EMAIL PROTECTED] Sun, 11 Aug 2002 04:21:53 -0700 >Delivered-To: [EMAIL PROTECTED] >Delivered-To: [EMAIL PROTECTED] >Message-ID: <[EMAIL PROTECTED]> >Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> > >Hi guys, > >I am having doubt regarding the following questions. >Please clarify. > >1.)what is the maximum amount of data >that we can store in session ? >2.)consider we are having two servlets A and B. >syntax for calling a method in servlet A from B. >3.)Difference between portal and website? > >Regards >HariKrishnan. > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com
Join the world�s largest e-mail service with MSN Hotmail. Click Here
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
