I m trying to find good reference for how to do JPA project (with EJB 3.x).
Its been very difficult for me to find how to configure persistance unit according to jBoss. (in GlassFish its just a piece of cake).
is anyone of you know good reference
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just ported my app that I developed on NetBeans from Glassfish 3 to JBoss 6. I had to disable JTA for the persistance to work but since I don’t need that at the moment something is better than nothing.
I am using container managed security and documented my configuration in this post.
I configured my JBoss 6 datasource by placing mysql-ds.xml into
$JBOSS_HOME\server\default\deploy. Here are contents:Unlike Glassfish, in JBoss 6, I had to declare each of my persistence classes explicitly. Here is my Persistence XML: