aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Is persistence.xml required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Is persistence.xml required" Watch "Is persistence.xml required" New topic
Author

Is persistence.xml required

rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
Hello,

I m new to EJB so this may sound naive. I see that the only required tag in persistence.xml is persistence unit with name and all others are optional. My question is, in such a case is persistence.xml file required? Should every project using JPA must have a persistence.xml?


Cheers!
RSR
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3101
    
  40

persistence.xml is required for setting a persistence unit on JPA.


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is persistence.xml required