[jboss-cvs] jboss-seam/src/main/org/jboss/seam/core ...
Gavin King
gavin.king at jboss.com
Mon Oct 23 07:01:06 EDT 2006
User: gavin
Date: 06/10/23 07:01:06
Modified: src/main/org/jboss/seam/core Ejb.java
Log:
minor
Revision Changes Path
1.16 +10 -5 jboss-seam/src/main/org/jboss/seam/core/Ejb.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Ejb.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/core/Ejb.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- Ejb.java 15 Apr 2006 22:28:06 -0000 1.15
+++ Ejb.java 23 Oct 2006 11:01:06 -0000 1.16
@@ -1,4 +1,4 @@
-//$Id: Ejb.java,v 1.15 2006/04/15 22:28:06 gavin Exp $
+//$Id: Ejb.java,v 1.16 2006/10/23 11:01:06 gavin Exp $
package org.jboss.seam.core;
import static org.jboss.seam.InterceptionType.NEVER;
@@ -30,6 +30,7 @@
private static final Log log = LogFactory.getLog(Ejb.class);
private EJB3StandaloneDeployer deployer;
+ private boolean started;
@Create
public void startup() throws Exception
@@ -49,6 +50,7 @@
deployer.create();
deployer.start();
//EJB3StandaloneBootstrap.scanClasspath();
+ started = true;
}
private void deploy(String name)
@@ -62,10 +64,13 @@
@Destroy
public void shutdown() throws Exception
{
+ if (started)
+ {
log.info("stopping the embedded EJB container");
deployer.stop();
deployer.destroy();
deployer = null;
+ }
EJB3StandaloneBootstrap.shutdown();
}
More information about the jboss-cvs-commits
mailing list