|
| A question about "persistence.xml" for EJB3 running |
 |
Wed, 14 May 2008 08:15:34 -070 |
Hi all,
I built an EJB-Project, a JAR file, which contains the
"persistence.xml" under \src\META-INF\. It looks as follow:
<?xml version="1.0"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="Wei_Oracle">
<jta-data-source>OracleDS</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto"
value="create-drop" />
</properties>
</persistence-unit>
</persistence>
I use the same file by JBoss and after I deployed and started this JAR, the
entity tables will be created.
Now I deploy this JAR on Weblogic 10g. But no entity tables are created after
this JAR is deployed and started.
I've created a Data Source via Admin Console and have tested it. This connection
to the physical data base is OK.
Can someone help?
Regards
|
| Post Reply
|
|
|
|
|
|
|
|
|
|