[jboss-cvs] JBossAS SVN: r61031 - branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/longlived.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Mar 1 12:12:25 EST 2007


Author: bdecoste
Date: 2007-03-01 12:12:25 -0500 (Thu, 01 Mar 2007)
New Revision: 61031

Modified:
   branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/longlived/ShoppingCartBean.java
Log:
fixed test - test used to expect that an injected bean is automatically removed (and @PreDestroy called) when the injecting bean is removed. The spec for SFSB lifecycle says nothing about the lifecycle of injected beans

Modified: branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/longlived/ShoppingCartBean.java
===================================================================
--- branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/longlived/ShoppingCartBean.java	2007-03-01 13:26:18 UTC (rev 61030)
+++ branches/Branch_4_2/ejb3/src/test/org/jboss/ejb3/test/longlived/ShoppingCartBean.java	2007-03-01 17:12:25 UTC (rev 61031)
@@ -121,5 +121,8 @@
 
 
    @Remove
-   public void checkout() {}
+   public void checkout()
+   {
+	   contained.checkout();
+   }
 }




More information about the jboss-cvs-commits mailing list