667481 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 24 Messages: 24 Messages: 24 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

OpenJPA available via Apache Incubator

Posted by: Joseph Ottinger on July 25, 2006 DIGG
BEA has completed the last set of OpenJPA code drops at the Apache Incubator, and it's now available for source download via Subversion. (Binary downloads will be available soon, according to BEA.)

OpenJPA is a set of Java persistence Application Program Interfaces (APIs) that are based on the forthcoming Enterprise Java Beans 3.0 persistenace specification. It's based on BEA's Kodo product, acquired by BEA in late 2005, and the contribution to Apache represents fulfillment of a commitment BEA made in May 2006. OpenJPA implements the EJB3 specification, and the commercial Kodo release adds tooling for JDO as well as some scalability to the OpenJPA codebase. Changes made to OpenJPA under Apache will thus find their way to the Kodo product as well, which is meant to be the mapping engine used under WebLogic as well.

OpenJPA itself has not passed the EJB3 TCK yet. It's hard to imagine that the TCK will not be applied soon; Kodo, based on the code released under the Apache OpenJPA project, has already passed the TCK tests.

OpenJPA is also likely to be the persistence provider for Apache Geronimo in the future, so it's worth stressing as soon as possible, if you're interested. The Glassfish community also has mentioned supplying OpenJPA as an alternate JPA provider to the default reference implementation (TopLink Essentials), and Spring plans specific OpenJPA support soon as well.

Threaded replies

·  OpenJPA available via Apache Incubator by Joseph Ottinger on Tue Jul 25 13:45:03 EDT 2006
  ·  Re: OpenJPA available via Apache Incubator by Chintan Rajyaguru on Tue Jul 25 14:17:12 EDT 2006
    ·  Whats the future for OpenJPA? by Jonathan Gibbons on Wed Jul 26 05:40:16 EDT 2006
      ·  Re: Whats the future for OpenJPA? by Patrick Linskey on Wed Jul 26 14:01:18 EDT 2006
        ·  Re: Whats the future for OpenJPA? by Jonathan Gibbons on Thu Jul 27 04:32:19 EDT 2006
    ·  Re: OpenJPA available via Apache Incubator by Rod Johnson on Wed Jul 26 06:11:27 EDT 2006
    ·  Re: OpenJPA available via Apache Incubator by Rod Johnson on Wed Jul 26 06:15:43 EDT 2006
      ·  Re: OpenJPA available via Apache Incubator by Andy Jefferson on Wed Jul 26 06:46:41 EDT 2006
        ·  Re: OpenJPA available via Apache Incubator by Rod Johnson on Mon Jul 31 03:51:48 EDT 2006
      ·  Re: OpenJPA available via Apache Incubator by Guido Anzuoni on Wed Jul 26 07:23:49 EDT 2006
      ·  Spring 2.0 release? by Daniel Serodio on Wed Jul 26 09:23:44 EDT 2006
        ·  Re: Spring 2.0 release? by Juergen Hoeller on Wed Jul 26 13:35:44 EDT 2006
      ·  Re: OpenJPA available via Apache Incubator by Jason Carreira on Wed Jul 26 09:33:01 EDT 2006
        ·  I need filters! by Daniel Serodio on Wed Jul 26 15:22:28 EDT 2006
          ·  Re: I need filters! by Christian Bauer on Wed Jul 26 15:39:40 EDT 2006
            ·  Re: I need filters! by Jason Carreira on Thu Jul 27 02:36:29 EDT 2006
              ·  Re: I need filters! by Christian Bauer on Thu Jul 27 08:52:06 EDT 2006
          ·  Re: I need filters! by Jonathan Gibbons on Thu Jul 27 04:31:06 EDT 2006
    ·  OpenJPA works out of box in GlassFish by Sahoo Sanjeeb on Fri Jul 28 07:50:55 EDT 2006
  ·  Re: OpenJPA available via Apache Incubator by Stefan Arentz on Tue Jul 25 14:35:03 EDT 2006
    ·  TCKs and open-source by Patrick Linskey on Tue Jul 25 14:45:17 EDT 2006
      ·  Re: TCKs and open-source by Geir Magnusson Jr on Tue Jul 25 14:52:54 EDT 2006
    ·  Re: OpenJPA available via Apache Incubator by Andy Jefferson on Wed Jul 26 01:09:55 EDT 2006
      ·  Re: OpenJPA available via Apache Incubator by Chris Conrad on Wed Jul 26 02:22:45 EDT 2006
  ·  Re: OpenJPA available via Apache Incubator by Florent BENOIT on Wed Jul 26 09:25:11 EDT 2006
  Message #214243 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Chintan Rajyaguru on July 25, 2006 in response to Message #214227
Great news! I was wondering about an open source implementation of JPA.

... that are based on the forthcoming Enterprise Java Beans 3.0 persistenace specification...


forthcoming? Am I missing something here? EJB 3.0 is already released.

OpenJPA is also likely to be the persistence provider for Apache Geronimo in the future, so it's worth stressing as soon as possible, if you're interested. The Glassfish community also has mentioned supplying OpenJPA as an alternate JPA provider to the default reference implementation (TopLink Essentials), and Spring plans specific OpenJPA support soon as well.


This is good but I can't find any references to openJPA planned to be used in Spring, Geronimo or Glassfish (that doesn't mean it's not true).

C
http://ChintanRajyaguru.com

  Message #214245 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Stefan Arentz on July 25, 2006 in response to Message #214227
This is most excellent news. Two things.

Hibernate needs competition. So this is excellent timing. Now there is OpenJPA, TopLink Essentials and probably some more in the future. I use Hibernate with the JPA 'perspective' with a lot of pleasure in my projects but I don't always like their attitude and agenda.

The TCK; it would be nice if Sun would open that. It would help the open source community big time. Right now when I submit a patch to say JBoss's EJB3 project or OpenJPA then I have to wait for someone inside JBoss or BEA to secretly run the TCK in private and wait for feedback. (I'm not contributing to these projects, this is just an example). I understand that they like to make some money but keeping the test kits closed is not helping the quality of open source projects.

S.

  Message #214247 Post reply Post reply Post reply Go to top Go to top Go to top

TCKs and open-source

Posted by: Patrick Linskey on July 25, 2006 in response to Message #214245
The TCK; it would be nice if Sun would open that. It would help the open source community big time. Right now when I submit a patch to say JBoss's EJB3 project or OpenJPA then I have to wait for someone inside JBoss or BEA to secretly run the TCK in private and wait for feedback. (I'm not contributing to these projects, this is just an example). I understand that they like to make some money but keeping the test kits closed is not helping the quality of open source projects.


Agreed. It'd be nice if at least we (BEA) could maintain a machine somewhere that runs the JPA TCK in private on some CI server but then publishes the results for the world to see. Does anyone from Sun care to comment on the legality of such a setup?

-Patrick

--
Patrick Linskey
http://bea.com

  Message #214248 Post reply Post reply Post reply Go to top Go to top Go to top

Re: TCKs and open-source

Posted by: Geir Magnusson Jr on July 25, 2006 in response to Message #214247
The TCK; it would be nice if Sun would open that. It would help the open source community big time. Right now when I submit a patch to say JBoss's EJB3 project or OpenJPA then I have to wait for someone inside JBoss or BEA to secretly run the TCK in private and wait for feedback. (I'm not contributing to these projects, this is just an example). I understand that they like to make some money but keeping the test kits closed is not helping the quality of open source projects.


Agreed. It'd be nice if at least we (BEA) could maintain a machine somewhere that runs the JPA TCK in private on some CI server but then publishes the results for the world to see. Does anyone from Sun care to comment on the legality of such a setup?


I'm sure that there's no problem with "Pass" and "Fail". :)

Anything else encourages adoption of implementations that aren't complete as people decide "Hey, X doesn't work, but I don't need that anyway..."

geir

  Message #214261 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Andy Jefferson on July 26, 2006 in response to Message #214245
The TCK; it would be nice if Sun would open that. It would help the open source community big time. Right now when I submit a patch to say JBoss's EJB3 project or OpenJPA then I have to wait for someone inside JBoss or BEA to secretly run the TCK in private and wait for feedback.

You mean like has been done for JSR 243 (JDO2) where the TCK, API, RI are all open source and everyone can run the TCK on any implementation, submit patches to the RI/TCK/API, and generally have an open standard ?

That would be nice wouldn't it ?

You could also mention that to get your hands on the "jpa.jar" you seemingly have to download a "JEE 5 SDK" ... all 132Mb of it (from jcp.org ... no download option for jpa.jar). Why ? Just to get my hands on 50Kb of jpa.jar? That is supposed to be runnable outside the container anyway. Not really making it easy for people here.

  Message #214264 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Chris Conrad on July 26, 2006 in response to Message #214261
Or you could just go to the Glassfish project and just download the JPA implementation: https://glassfish.dev.java.net/downloads/persistence/JavaPersistence.html

Not that Sun in any way makes it obvious you can do this and it requires half a dozen clicks to get from the Glassfish front page to that download page...

  Message #214271 Post reply Post reply Post reply Go to top Go to top Go to top

Whats the future for OpenJPA?

Posted by: Jonathan Gibbons on July 26, 2006 in response to Message #214243
I presume BEA pays wages for this, but that it is now a revenue generating product. More a value add to stop slippage into JBoss/Hibernate?

This is totally fine with me, I want an open JPA, ideally with some examples tied to spring and tomcat. But OpenJPA needs to have a future, a core team for the next 2 years.

I'm just wondering on the plans for this? Is the current team staying with it as a labour of love (which is fine) or are BEA keeping the project propped up?

I may have totally missed the real relationship of BEA to OpenJPA - in which case please do correct me, I'm not trying to spread FUD at all.

Jonathan

  Message #214274 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Rod Johnson on July 26, 2006 in response to Message #214243

This is good but I can't find any references to openJPA planned to be used in Spring, Geronimo or Glassfish (that doesn't mean it's not true).

Speaking on behalf of the Spring project, we are looking forward to working with the Open JPA committers and community, and it will absolutely be treated as a first-class citizen by Spring. We have someone scheduled to start on this next week.

We've already done some work on Kodo integration, and validated that Spring's JPA support works with Kodo.

Rod Johnson, Interface21, Spring from the Source

  Message #214276 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Rod Johnson on July 26, 2006 in response to Message #214243
This is further excellent news. Now we have three capable open source ORM tools: Hibernate, TopLink Essentials, and now Open JPA. Developers have never had so much choice.

We're putting a lot of effort in Spring 2.0 into ensuring that it's as easy as possible to switch between ORM tools, and easily evaluate the alternatives--for example, for different performance characteristics etc.

Rgds
Rod

  Message #214279 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Andy Jefferson on July 26, 2006 in response to Message #214276
This is further excellent news. Now we have three capable open source ORM tools: Hibernate, TopLink Essentials, and now Open JPA. Developers have never had so much choice.

Rod, think you meant to say three capable open source JPA tools because, of course, there are many other open source tools for other established ORM standards that are more than capable ;-) [and Spring has support for those too]

  Message #214285 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Guido Anzuoni on July 26, 2006 in response to Message #214276
This is further excellent news. Now we have three capable open source ORM tools: Hibernate, TopLink Essentials, and now Open JPA. Developers have never had so much choice.


Developers wandered in the dark, then a blinding light came
and the road was clear: JPA.


Come on, be serious.
Where did you live before ?

Not considering only open source choices we had (standard based solutions), in alphabetical order (surely incomplete list):
Exadel (don't remeber the product name)
IntelliBO
JCredo
JDOGenie (now Vanatec OpenAccess)
JPOX (opensource)
JRelay
Kodo
LiDO (now XCALIA)
OpenAccess on sourceforge (opensource)
Speedo (opensource)

Guido.

  Message #214297 Post reply Post reply Post reply Go to top Go to top Go to top

Spring 2.0 release?

Posted by: Daniel Serodio on July 26, 2006 in response to Message #214276
Does this mean that the Spring 2.0 release will have to wait for Open JPA support? Or will it be added in 2.1 or such?

  Message #214299 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Florent BENOIT on July 26, 2006 in response to Message #214227
The ObjectWeb EasyBeans EJB3 container team will also ensure that OpenJPA can be used as entity manager.
Currently, Hibernate EntityManager and Oracle TopLink Essentials can be plugged.

The OpenJPA integration should be available in the M3 or M4 version of EasyBeans.

  Message #214300 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Jason Carreira on July 26, 2006 in response to Message #214276
We're putting a lot of effort in Spring 2.0 into ensuring that it's as easy as possible to switch between ORM tools, and easily evaluate the alternatives--for example, for different performance characteristics etc.

Rgds
Rod


How's the work on a cross-JPA implementation of Criteria coming? Any plans to support something like Hibernate's Filters? I was very excited about the JPA spec until I saw it lacked these features that I depend on in Hibernate.

  Message #214326 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Spring 2.0 release?

Posted by: Juergen Hoeller on July 26, 2006 in response to Message #214297
The Spring 2.0 release schedule is not driven by explicit OpenJPA support as mandatory feature. We will be releasing Spring 2.0 final with the present scope very soon now.

That said, we are dedicated to supporting OpenJPA at the same level as TopLink Essentials and the Hibernate EntityManager, and to shipping it as part of our "-with-dependencies" download bundle.

Depending on the state of OpenJPA at the time of the Spring 2.0 final release, we will either include specific support for it there already or will slip this into a subsequent 2.0.x release.

Juergen

  Message #214325 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Whats the future for OpenJPA?

Posted by: Patrick Linskey on July 26, 2006 in response to Message #214271
Is the current team staying with it as a labour of love (which is fine) or are BEA keeping the project propped up?

I may have totally missed the real relationship of BEA to OpenJPA


Last year, BEA acquired SolarMetric, the makers of Kodo. Kodo has since been integrated into WebLogic Server as the EJB3 JPA persistence provider ( WebLogic EJB3 Tech Preview), and we're working hard on more integration with the server for the upcoming Java EE 5-compliant server release.

So, in other words, Kodo is a key piece of BEA's EJB3 strategy, and as such, certainly has strong backing from BEA. The development team from SolarMetric (myself included) are among the initial committers on the OpenJPA project, and we're avoiding a fork in the Kodo codebase by building the commercial version of Kodo and, in turn, WebLogic, on top of the OpenJPA jars.

Neelan Choksi (former SolarMetric president) goes into a bit more detail in his blog.

Hopefully this clears things up a bit.

-Patrick

--
Patrick Linskey
http://bea.com

  Message #214333 Post reply Post reply Post reply Go to top Go to top Go to top

I need filters!

Posted by: Daniel Serodio on July 26, 2006 in response to Message #214300
How's the work on a cross-JPA implementation of Criteria coming? Any plans to support something like Hibernate's Filters? I was very excited about the JPA spec until I saw it lacked these features that I depend on in Hibernate.

Yeah, same here. Filters are the one Hibernate feature that I miss from the JPA spec.

  Message #214337 Post reply Post reply Post reply Go to top Go to top Go to top

Re: I need filters!

Posted by: Christian Bauer on July 26, 2006 in response to Message #214333
Uhm, wouldn't the best way to get these features into the Java Persistence products be a next version of the specification? I'm sure that more feedback will help to speed this up. Emmanuel Bernard just told me that ejb3-feedback@sun.com is the right address for this.

  Message #214353 Post reply Post reply Post reply Go to top Go to top Go to top

Re: I need filters!

Posted by: Jason Carreira on July 27, 2006 in response to Message #214337
Uhm, wouldn't the best way to get these features into the Java Persistence products be a next version of the specification? I'm sure that more feedback will help to speed this up. Emmanuel Bernard just told me that ejb3-feedback@sun.com is the right address for this.


Well, that is a good way to get it, but it will take 18 months AT LEAST. Probably over 2 years.

  Message #214356 Post reply Post reply Post reply Go to top Go to top Go to top

Re: I need filters!

Posted by: Jonathan Gibbons on July 27, 2006 in response to Message #214333
Thanks - thats perfect.

Good luck as well. Hopefully get time to use it soon :)

Jonathan

  Message #214357 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Whats the future for OpenJPA?

Posted by: Jonathan Gibbons on July 27, 2006 in response to Message #214325
oops, wrong subject on my last post (see above)

Jonathan

  Message #214366 Post reply Post reply Post reply Go to top Go to top Go to top

Re: I need filters!

Posted by: Christian Bauer on July 27, 2006 in response to Message #214353
Well, that is a good way to get it, but it will take 18 months AT LEAST. Probably over 2 years.


So put pressure on the vendors by requesting these features as part of their JPA solution. If the representatives of the vendors don't push for it on the EG we will see the same stagnation as with EJB 1/2. That just shouldn't happen again, now that we have a good base to work with.

I've just finished comparing JPA and Hibernate in a book in detail and I agree that Hibernate criteria queries and data filters will be among the most frequently used vendor extensions. Some common subset should certainly be part of the next spec revision. (It's also obvious why they haven't been included in the first revision, I can imagine the endless discussions you can have about the best way to design a QBC API...)

  Message #214423 Post reply Post reply Post reply Go to top Go to top Go to top

OpenJPA works out of box in GlassFish

Posted by: Sahoo Sanjeeb on July 28, 2006 in response to Message #214243

This is good but I can't find any references to openJPA planned to be used in Spring, Geronimo or Glassfish (that doesn't mean it's not true).

I tried OpenJPA in GlassFish and guess what? It *works* just like so many other providers work in GlassFish. Just drop the OpenJPA jars in GlassFish lib folder and start using it. For details look at: http://weblogs.java.net/blog/ss141213/archive/2006/07/using_openjpa_a.html

Interacting with developers in various support forums, I am seeing that developers are actually *exploring* various combinations of containers & providers. We have people using other providers in GlassFish and some actually trying to use our provider (TopLink Essential) in other containers. Good to see that the exerts group's effort in coming up with a *SPI* between provider and container paying off.

-- Sahoo

  Message #214498 Post reply Post reply Post reply Go to top Go to top Go to top

Re: OpenJPA available via Apache Incubator

Posted by: Rod Johnson on July 31, 2006 in response to Message #214279
Rod, think you meant to say three capable open source JPA tools because, of course, there are many other open source tools for other established ORM standards that are more than capable ;-) [and Spring has support for those too]

Indeed I did. Spring has supported JDO since 1.0 and continues to do so.

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book: Jakarta-Struts Live

Download the entire book of Jakarta-Struts Live and learn about Struts MVC, Tiles, the Validator, DynaActionForms, plug-ins, internationalization, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map