Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Removing EJB Business Delegate

Removing EJB Business Delegate

2004-02-25       - By ashraf galal

 Back
Reply:     1     2     3     4     5     6     7     8     9  

<html><div style='background-color:'><P>I agree with you that subject is no
longer related to the pattern.</P>
<P>But I have one more comment. because I think you speak about entity bean not
session.</P>
<P>from the definition of the sessio bean: <BR></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT face="Times New Roman" size=2>Session
beans</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT size=2><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Exists for the duration of an
interaction between a client application and an application server.</FONT><
/FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT size=2><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>The data of a session bean is not
stored in a database.</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT size=2><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Session beans can be either
stateless or stateful. </FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT size=2><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>A stateless session bean does not
maintain any state between method calls and can process requests from multiple
client applications.</FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT size=2><FONT face="Times New Roman"><SPAN
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>A stateful session bean maintains
conversational state between method calls and can process requests from a
single client application. </FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT face="Times New Roman" size=2></FONT>&nbsp
;</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt 0.5in; DIRECTION: ltr; unicode
-bidi: embed; TEXT-ALIGN: left"><FONT face="Times New Roman" size=2>I agree with
Sean that the container manage the llife cycle of the bean. </FONT></P>
<P><BR>&nbsp;</P><BR><BR><BR>
<DIV>Ashraf Galal <BR>(416)804-8359</DIV>&gt;From: James Telfer <JT@(protected)
.COM.AU>&gt;Reply-To: An interest list for Sun Java Center J2EE Pattern Catalog
<J2EEPATTERNS-INTEREST@(protected)>&gt;To: J2EEPATTERNS-INTEREST@(protected)
&gt;Subject: Re: Removing EJB Business Delegate &gt;Date: Thu, 26 Feb 2004 14:30
:55 +1030 &gt; &gt;The remove() method on a session bean signals to the
container that you have &gt;no further use for the calling instance. In the
case of a stateless bean &gt;this method is not that useful, however in the
case of a stateful bean it &gt;allows the container to release resources
earlier than it otherwise would. &gt;Stateful beans that do not have remove()
called on them will be freed on &gt;session timeout, avoiding the resource leak
you allude to. &gt; &gt;Feel free to take this discussion up with me off list;
I'm not sure that &gt;this is pattern-based any longer. &gt; &gt;JT &gt; &gt;--
---Original Message-- -- &gt;From: Arzamasov Alexey [mailto:A
Arzamasov@(protected)] &gt;Sent: Thursday, 26 February 2004 14:22 &gt;To:
J2EEPATTERNS-INTEREST@(protected) &gt;Subject: Re: Removing EJB Business
Delegate &gt; &gt; &gt;On Thursday 26 February 2004 09:41, Sean Brydon wrote:
&gt; &gt; &gt; The EJB container maintains controls the lifecycle of session
beans, so &gt; &gt; you do not need to call remove. It will create them and
destroy them as &gt; &gt; needed. This is a nice feature of EJB containers
since you are free to &gt; &gt; focus on the application business logic and let
the conainer manage the &gt; &gt; object lifecycle. &gt; &gt; &gt; &gt; On
entity beans you would call remove if you want to remove some data &gt; &gt;
from the database. &gt; &gt;I guess that one should call remove() on statefull
session bean to signal to &gt;container that this bean can be removed and do
not need to be passivated. &gt;I guess that not calling remove() will cause
container to hold my statefull &gt;session bean forever. &gt;Is it wrong? &g
t; &gt;====================================================================
&gt;Companion Site: http://www.corej2eepatterns.com &gt;J2EE BluePrints: http:/
/java.sun.com/blueprints/corej2eepatterns &gt;List Archive: http://archives.java
.sun.com/archives/j2eepatterns-interest.html &gt;Unsubscribing: email "signoff
J2EEPATTERNS-INTEREST" to listserv@(protected) </div><br clear=all><hr>Add
photos to your e-mail with  <a href="http://g.msn.com/8HMBENCA/2746??PS=">MSN 8
. </a> Get 2 months FREE*. </html>
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.