This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A question about "persistence.xml" by Weblogic

 
Thomas Chang
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I built an EJB-Project, a JAR file, which contains the "persistence.xml" under \src\META-INF\. It looks as follow:



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.
 
Marcos Maia
Ranch Hand
Posts: 977
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

have you created weblogic-cmp-jar.xml DD? Are you using EJBs for persistence?

Take a look at:

http://edocs.bea.com/wls/docs100/ejb/DDreference-cmp-jar.html#wp1162249

that may be what you're missing.

regards.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic