List Info

Thread: EAR & persistence.xml




EAR & persistence.xml
user name
2007-07-17 15:25:09
Hi,
I'm happy to see the EAR support in the last release (M6) of
EasyBeans.
I have a small free time and I decide to see how work a
release.
I made one EAR file, who contains two JAR files and two WAR
files.
Every JAR file contain some entity beans and used owns
persistence.xml
file (one for every jar)
The first persistence.xml contain persistence-unit that use
connection
to one MySQL server, and 
in the second persistence.xml contain persistence-unit that
use
connection to one Oracle server.

When I deploy this EAR to EB(EasyBeans)-Tomcat-6.0.13,  I
see in console
following exception :
...
Caused by: java.lang.IllegalStateException: There is an
existing
persistence.xml in another library of this EAR. This is not
supported. 
...

I don't remember that is requirement of javaee5
specification?! But I
thing that will be the great feature ... can used more one
persistence.xml file in EAR.

I'll waiting your comments about that. 

Greeting,
G.Dimitrov 


-- 
http://www.fastmail.fm
- The way an email service should be



  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )