[jboss-user] [EJB 3.0] - Re: Separate JARs for Entity and Session beans
jaikiran
do-not-reply at jboss.com
Sun Oct 12 08:57:46 EDT 2008
"hipa" wrote : Is it possible to separate my entityies and session beans?
|
Yes, its possible.
"hipa" wrote :
| If I don't add persistence.xml to the JAR with entities hibernate don't see them (no tables will be created). If I add persistence.xml to both session beans JAR and entities JAR hibernate generate IllegalArgumentException: Unknown entity on each EntityManager call.
Add the persistence.xml in the META-INF folder of your ejb jar and use the jar-file element in the persistence.xml to point to the entities jar. If you run into any exceptions, please post the details which includes the JBoss, Java version and the entire exception stacktrace.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181679#4181679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181679
More information about the jboss-user
mailing list