User: d_jencks
Date: 01/11/15 17:33:50
Modified: src/main/org/jboss/ejb Application.java
Log:
Reenabled calling destroy on containers: now from stop
Revision Changes Path
1.21 +11 -4 jboss/src/main/org/jboss/ejb/Application.java
Index: Application.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Application.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- Application.java 2001/11/15 05:30:54 1.20
+++ Application.java 2001/11/16 01:33:50 1.21
@@ -28,7 +28,7 @@
* @see ContainerFactory
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rickard �berg</a>
- * @version $Revision: 1.20 $
+ * @version $Revision: 1.21 $
*/
public class Application
implements Service
@@ -185,11 +185,13 @@
// Service implementation ----------------------------------------
public void init() throws Exception {throw new Exception("don't call init");}
public void destroy(){}
-
/**
- * Starts all the containers of this application.
+ * The mbean Service interface <code>start</code> method calls
+ * the start method on each contatiner, then the init method on each
+ * container. Conversion to a different registration system with one-phase
+ * startup is conceivable.
*
- * @exception Exception
+ * @exception Exception if an error occurs
*/
public void start() throws Exception
{
@@ -214,6 +216,11 @@
{
Container con = (Container)i.next();
con.stop();
+ }
+ for (Iterator i = containers.values().iterator(); i.hasNext();)
+ {
+ Container con = (Container)i.next();
+ con.destroy();
}
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development