djencks 2004/09/24 03:18:55
Modified: modules/itests/src/itest/org/openejb/test
AxionTestDatabase.java
Log:
Use namespace rewriting to eliminate refAdapter use. Fix broken jndi for
non-app-client clients. Clean up exception handling. Fix invalid openejb-dd
Revision Changes Path
1.2 +4 -8
openejb/modules/itests/src/itest/org/openejb/test/AxionTestDatabase.java
Index: AxionTestDatabase.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/itests/src/itest/org/openejb/test/AxionTestDatabase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AxionTestDatabase.java 8 Sep 2004 07:20:16 -0000 1.1
+++ AxionTestDatabase.java 24 Sep 2004 07:18:55 -0000 1.2
@@ -131,18 +131,14 @@
obj = initialContext.lookup("client/tools/DatabaseHome");
databaseHome = (DatabaseHome)
javax.rmi.PortableRemoteObject.narrow(obj, DatabaseHome.class);
} catch (Exception e) {
- throw new IllegalStateException("Cannot find
'client/tools/DatabaseHome': "
- + e.getClass().getName()
- + " "
- + e.getMessage());
+ throw (IllegalStateException)new IllegalStateException("Cannot find
'client/tools/DatabaseHome': "
+ + e.getMessage()).initCause(e);
}
try {
database = databaseHome.create();
} catch (Exception e) {
- throw new IllegalStateException("Cannot start database: "
- + e.getClass().getName()
- + " "
- + e.getMessage());
+ throw (IllegalStateException)new IllegalStateException("Cannot start
database: "
+ + e.getMessage()).initCause(e);
}
return database;
}