|
|
|
|
|
• Feedback -
JPA Providers |
|
Alexis is running a poll on What JPA Provider you are using. If you are so inclined, point your browser to his blog entry - the poll is on the Right-Hand Side margin - and cast your vote. Self-selecting polls have many methodology problems - I always think about Lies, Dammned Lies and Statistics when I see them, but they are still interested. Right now, with over 70 votes, TopLink has 32% and Hibernate has 58%. OpenJPA has 4% and others is 5%. Let's see what type of impact the wider announcement has on the result. |
Update - As of 12:47 pm PT, Dec 12th, with 186 votes we have 54% Hibernate, 38% TopLink, 4% OpenJPA and 4% Others.
|
Tim has been exploring how to provide JavaFX Script support in GlassFish App Clients. Much of this can be done on the GFv2 base and we expect to do more in GFv3 - it is listed in the Themes Page. Tim's original post showed A Simple Client; since then he has posted two more entries: how to Use Injected Resources and how to Use Persistence. |
JavaFX is beginning to show progress on multiple fronts, including some Adoption Reports, improvements on the JavaFX Script Compiler and its First Book. Also see earlier TA entries.
|
Two tips on using Hibernate
with GlassFish v2:
• From Max:
Hibernate with NB and GF |
|
Max has been doing an interesting series of tutorials using GlassFish, NetBeans and JPA, the Java Persistence API (@Sun, @JCP, FAQ). The original tutorial covered how to Use Hibernate as JPA Provider and the next showed how to use Additional Hibernate Features. The new series explores JSF and ehCache and revisits Hibernate and TopLinkEssentials: [1], [2], [3] and [4]. |
|
The JCP SE/EE Executive Commitee has approved two new JSRs for development: JPA 2.0 (JSR page, Vote results) and EJB 3.1 (JSR page, Vote Results). Both Reference Implementations will developed in the GlassFish Community as Open Source. |
|
Java Persistence (JPA) was born as part of JSR 220 (EJB 3). With the success of version 1.0 and its use in both managed (Java EE) and non-managed environments (JavaSE), it will now live a life of its own with JSR 317 and Linda DeMichiel as the spec lead. |
Expected from this new version is an API for "criteria" queries and the ability to have hierarchies of Embeddables. It also mentions beans validation which wasn't explicitly listed as a Java EE 6 candidate.
JPA 2.0, and the newly proposed Enterprise JavaBeans - EJB 3.1 - are set to be part of Java EE 6 (target is end of 2008) which has been approved earlier this week.
|
The Seam framework has previously been reported as running just fine on the GlassFish application server (in this blog by Roger Kitain for instance). In fact, JBoss clearly indicates GlassFish as a supported platform. The most recent article on that topic by Brian Leonard has inspired Carol McDonald to write about a "Sample Application using JSF, Seam, and Java Persistence APIs on Glassfish". |
Carol's article has detailed steps for setup and coding with nice coloring to distinguish between Java EE, Seam and business classes/interfaces and annotations. It uses GlassFish 1 (but also works on the recently released glassfish 2 beta 3) and Seam 1.2.1 GA. You can start with the application archive which is provided as a NetBeans project and usable via ANT directly (including database creation and population) or follow the steps to create your own application from scratch.
|
|
OpenJPA just graduated from the incubator. Last year, Sahoo reported success integrating it with GlassFish; now it is Mitesh's turn. |
Check it out! More information at the OpenJPA project (web site, downloads) and in Mitesh's blog.
|
OpenJPA is still in the Apache incubator phase but it seems to be in pretty reasonable shape. Sahoo took it for a spin and he reports success in plugging it into GlassFish. Follow his detailed instructions if you are interested. Previously we had also reported success in plugging Kodo and Hibernate into GlassFish. |
The converse also holds and GlassFish's Top Link Essentials plugs into Tomcat, Geronimo and many others. This pluggability accelerates the Adoption of the JavaPersistence API. A list of spotlights on Java Persistence at TheAquarium is available here.
|
We may need a category just for Elvis Postings... Recently Brian started with Cay's Elvis Meets GlassFish article and Joined Elvis with NetBeans. Now, Brian has expanded on that by showing how the Java standards, and their support in an IDE like NetBeans, provide Portability on JBoss. |
Portability is exactly why Java standards are important to the customer, although you may need to pay some attention to be sure no implementation dependencies creep in; you don't want to unwillingly use an Elvis Impersonator!