Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » OSGI & JPA(Deploying JPA app into a OSGI container)
OSGI & JPA [message #505031] Thu, 24 December 2009 08:43 Go to next message
Miguel  is currently offline Miguel
Messages: 4
Registered: December 2009
Junior Member
hi all,

I am new using JPA and OSGI. I have a JPA application and I would like to deploy it using a OSGI container.

I have found EclipseLink reference but it is not clear for me how to integrate both of them.

I usually work with standard OSGI API. Which bundles do I need to make my JPA application works in OSGI?
I have added javax.persistence_2.0.0.v200911271158 bundle but I guess I need some extra more bundles.

could anybody help me?

thank you in advance,

Miguel
Re: OSGI & JPA [message #505207 is a reply to message #505031] Mon, 28 December 2009 10:29 Go to previous messageGo to next message
Shaun Smith is currently offline Shaun Smith
Messages: 197
Registered: July 2009
Senior Member
Hi Miguel,

The javax.persistence bundle contains just the JPA API classes but not a JPA implementation. The EclipseLink JPA implementation is packaged as a set of bundles. Take a look at the OSGi Examples on the wiki for details on what bundles you need and how to configure the necessary start levels.

--Shaun
Re: OSGI & JPA [message #505237 is a reply to message #505207] Mon, 28 December 2009 15:09 Go to previous message
Miguel  is currently offline Miguel
Messages: 4
Registered: December 2009
Junior Member
Thank you shaun!!

I get it working wit eclipselink2.0. I was mixing versions using eclipse.

thank you.

Miguel
Previous Topic:downgraded to 1.2.0; sequences get out of sync
Next Topic:NoSuchMethodException when using FetchType.Lazy and weaving
Goto Forum:
  


Current Time: Thu Jul 24 00:34:23 EDT 2014

Powered by FUDForum. Page generated in 0.01720 seconds