...
In 0.9.2 and 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 configured with something like this:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<database name="Global_TX_Database" engine="instantdb"> <jndi name="java:comp/env/jdbc/basic/entityDatabase" /> <mapping href="conf/default.cmp_mapping.xml" /> </database> |
This was just wrong. We'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.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<database name="Global_TX_Database" engine="instantdb"> <jndi name="java:openejb/connector/Default JDBC Database" /> <mapping href="conf/default.cmp_mapping.xml" /> </database> |
...