|
From: Christian D. <de...@oi...> - 2002-09-07 14:24:26
|
Hi, During the implementation of the recorder, we encountered some problems with the scope of a page-Context. If have tryed to answer based on a look at the book J2EE-Patterns from Deepak Alur Part 3.6 figure 3.1, but that does not work. Does anybody know the answer of the following questions ? 1 Servlet generated from 1 JSP uses the pagecontext to store a reference x to an object in the pagecontext. During the first call ist still in the _jspservice- Method and the reference points to a object of status "alive" a second call to _jspservice-Method is made by another Client. The client also try to use the objectreference x in the page-Context. a) Is the reference x in the second-call the same or only to the same Object ? b) If second call is setting x to point to another object of status "death" which status is visible to the first call ? -- Orientation in Objects GmbH Christian Dedek Weinheimer Str. 68 68309 Mannheim http://www.oio.de Tel. +49(0)621-71839-0 Fax. +49(0)621-71839-50 |