Mantis - Resin
Viewing Issue Advanced Details
1680 major always 04-10-07 17:06 04-10-07 18:52
westrupp  
 
urgent  
closed 3.1.0  
fixed  
none    
none 3.1.1  
0001680: Amber/EJB3 and multiple data sources
At least there is a missing functionality for the <exclude-unlisted-classes/> which will cause Amber to validate the bean fields against the wrong database.

<persistence xmlns="http://java.sun.com/xml/ns/persistence" [^] version="1.0">
   <persistence-unit name="hello">
    <jta-data-source>jdbc/db1</jta-data-source>
    <class>hello.HelloBean</class>
    <exclude-unlisted-classes/>
    </persistence-unit>
   <persistence-unit name="test">
    <jta-data-source>jdbc/db2</jta-data-source>
    <class>hello.TestBean</class>
    <exclude-unlisted-classes/>
    </persistence-unit>
</persistence>

com.caucho.config.ConfigException: 'TESTBEAN' is not a valid database
table. Either the table needs to be created or the
create-database-tables attribute must be set.

Notes
(0001831)
westrupp   
04-10-07 18:52   
jpa/1631