aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB 3 Entities:clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "EJB 3 Entities:clarification" Watch "EJB 3 Entities:clarification" New topic
Author

EJB 3 Entities:clarification

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 571

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!


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 571

Managed to get this working by using Hibernate Persistence Provider instead....
as well as switching ojdbc14.jar for ojdbc6.jar

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB 3 Entities:clarification
 
Similar Threads
is there like a query analizer for orm?
How To Add Hibernate Facet To Eclipse Galileo JPA Project?
EJB usage ... some basic knowledge gathering
Is there a way to create application (ear) project from maven to eclipse?
configuring the weblogic to work with eclipselink 1.x version instead of default 2.x verion