• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB 3 Entities:clarification

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Managed to get this working by using Hibernate Persistence Provider instead....
as well as switching ojdbc14.jar for ojdbc6.jar

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic