Hi all,
Assuming I have an EAR file containing an
EJB and a WAR, and I need to use some EJB 3 entities.Would I package the entities in a jar with the persistence.xml and put it in the root of the EAR(and have a
Java module entry in application.xml for the persistence
unit)..would this satisfy the presentation layer's and business logic layer's dependencies on the entities at run-time?What is the easiest way to do this without an ant-script?To simply add a 'project reference' to the build path of the web and ejb projects in eclipse?
Also, I'm having major problems trying to get JPA to work with my beans...I keep on getting this error:
I have tried using EclipseLink 1.0 and EclipseLink 2.0(jars+facet) but it doesn't resolve the problem.(If I remember correctly, switching the jars+facet resulted in an InstantationException on the javax.persistence.spi.PersistenceProvider class.)
What I have noticed though is that I don't have any jboss.xml deployment descriptor???Shouldn't eclipse generate this for me?)
I am using
JBOSS 6.0.0 Final, with Eclipse Helios SR2 and EJB 3.0.
Your help would be greatly appreciated!