dblevins 2005/08/26 17:18:56
Modified: modules/core/src/conf default.cmp_global_tx_database.xml
Log:
This is a pretty significant change. The way it was before the JDO database
was using the private JNDI namespace of the very first CMP accessed to grab
a datasource and hold onto it for use on all requests into the CMP container.
This was just wrong. I've switched it so that the "jndi" tag of a Castor
database.xml file can be set directly to the global JNDI name of a Connector
element declared in an openejb.conf file. This is still not so optimal as we
do not want to advertize we have a global jndi and encourage people to become
dependent on it. Better still would be to eliminate the need for people to
have to define database.xml files at all.
Revision Changes Path
1.2 +1 -1
openejb1/modules/core/src/conf/default.cmp_global_tx_database.xml
Index: default.cmp_global_tx_database.xml
===================================================================
RCS file:
/home/projects/openejb/scm/openejb1/modules/core/src/conf/default.cmp_global_tx_database.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- default.cmp_global_tx_database.xml 26 Mar 2004 21:41:19 -0000
1.1
+++ default.cmp_global_tx_database.xml 26 Aug 2005 21:18:56 -0000
1.2
@@ -35,7 +35,7 @@
-->
<database name="Global_TX_Database" engine="instantdb">
- <jndi name="java:comp/env/jdbc/basic/entityDatabase" />
+ <jndi name="java:openejb/connector/Default JDBC Database" />
<mapping href="conf/default.cmp_mapping.xml" />
</database>