[jboss-cvs] jboss-ejb3/src/main/org/jboss/ejb3/embedded ...
Bill DeCoste
bdecoste at jboss.com
Mon Jul 24 17:28:28 EDT 2006
User: bdecoste
Date: 06/07/24 17:28:28
Modified: src/main/org/jboss/ejb3/embedded
EJB3StandaloneDeployer.java
EJB3StandaloneBootstrap.java
Log:
MDB cleanup, standalone test for standard testcases, fixed class level @Resources jndi env bindings
Revision Changes Path
1.17 +22 -2 jboss-ejb3/src/main/org/jboss/ejb3/embedded/EJB3StandaloneDeployer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EJB3StandaloneDeployer.java
===================================================================
RCS file: /cvsroot/jboss/jboss-ejb3/src/main/org/jboss/ejb3/embedded/EJB3StandaloneDeployer.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- EJB3StandaloneDeployer.java 6 May 2006 21:03:16 -0000 1.16
+++ EJB3StandaloneDeployer.java 24 Jul 2006 21:28:28 -0000 1.17
@@ -39,6 +39,8 @@
import java.util.zip.ZipFile;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
+import javax.naming.InitialContext;
+import javax.naming.NamingEnumeration;
import org.jboss.dependency.spi.ControllerContext;
import org.jboss.ejb3.DeploymentUnit;
@@ -53,7 +55,7 @@
* All classes and jars must already be in your classpath for this deployer to work.
*
* @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
*/
public class EJB3StandaloneDeployer
{
@@ -218,6 +220,7 @@
public void setArchives(Set archives)
{
+ new Exception().printStackTrace();
this.archives = archives;
}
@@ -434,6 +437,7 @@
DeployerUnit du = new DeployerUnit(classLoader, archive, defaultPersistenceProperties, jndiProperties);
EJB3StandaloneDeployment deployment = new EJB3StandaloneDeployment(du, kernel, mbeanServer);
deployments.add(deployment);
+ System.out.println("!! archive " + archive);
deployment.create();
}
}
@@ -444,6 +448,21 @@
}
}
+ private void lookup(String name)
+ {
+ System.out.println("lookup " + name);
+ try {
+ InitialContext jndiContext = new InitialContext();
+ NamingEnumeration names = jndiContext.list(name);
+ if (names != null){
+ while (names.hasMore()){
+ System.out.println(" " + names.next());
+ }
+ }
+ } catch (Exception e){
+ }
+ }
+
public void start() throws Exception
{
try
@@ -458,6 +477,7 @@
}
deployment.start();
+ lookup("");
}
}
catch (Exception e)
1.23 +2 -2 jboss-ejb3/src/main/org/jboss/ejb3/embedded/EJB3StandaloneBootstrap.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: EJB3StandaloneBootstrap.java
===================================================================
RCS file: /cvsroot/jboss/jboss-ejb3/src/main/org/jboss/ejb3/embedded/EJB3StandaloneBootstrap.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- EJB3StandaloneBootstrap.java 5 Jul 2006 07:31:12 -0000 1.22
+++ EJB3StandaloneBootstrap.java 24 Jul 2006 21:28:28 -0000 1.23
@@ -56,7 +56,7 @@
* This is usually only used in standalone Java programs or Junit tests.
*
* @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision: 1.22 $
+ * @version $Revision: 1.23 $
*/
public class EJB3StandaloneBootstrap
{
@@ -214,7 +214,7 @@
boolean found = false;
for (String wantedPath : split)
{
- if (path.endsWith(wantedPath))
+ if (path.endsWith(System.getProperty("file.separator") + wantedPath))
{
found = true;
break;
More information about the jboss-cvs-commits
mailing list