Tuesday Jul 08, 2008

New Sample App: Groovy, Grails, GlassFish and MySQL


This is not just YAPS (Yet Another Pet Store); this one is Groovy! :-) Carol has written a sample of the now famous Pet Store (check out the Wikipedia Entry) but this time it uses Groovy, Grails, MySQL Server and the GlassFish Server.

Carol's writeup has full details. Other TA entries on the topic are tagged Groovy or Grails, including the announcement about Grails in the UpdateCenter.

Sunday Jul 06, 2008

EclipseLink News: Graduation, Overview, RoadMap, Enterprise Tips


EclipseLink, the JPA implementation that is being used in GlassFish v3 (related posts), just Graduated from the Incubator on its way towards a 1.0 release next week (Roadmap), very well timed for GlassFish v3 :-)

In preparation for the release you may want to check Doug and Shaun's Overview at DZone. EclipseLink 1.0 should show in a GFv3 build soon; I'll check out the details and report back.

Monday May 26, 2008

Rails on GlassFish - With JPA and MySQL

JRuby in GlassFish

The Object Relational Mapping in Rails is provided  by ActiveRecord. If GlassFish is used for Rails application deployment then you may like to use Java Persistence API, because of existing code, for ORM instead. 

Vivek explained in a recent blog how to use JPA with Rails on GlassFish v2 and MySQL. Ming followed up with a similar entry for GlassFish v3.

GlassFish v2 uses Top Link Essentials as persistence provider and GlassFish v3 uses Eclipse Link. Rails powered by the GlassFish Application Server provides all the details on why should consider using GlassFish for deploying Rails applications.

Previous success stories of Rails deployed on GlassFish can be seen here and here.

Tuesday May 06, 2008

More JavaEE 6 Spec Previews: Servlet 3.0 and JPA 2.0

JavaOne is always a forcing function for announcements, releases, deals, etc. Some happen during the week, some the weeks before - makes it a bit hard to keep up, but now that CommunityOne is over, I'll try to start catching up...


New Previews of JavaEE 6 Specifications:

• Rajiv announces the latest Servlet 3.0 Draft Spec
• Linda announces the latest JPA 2.0 Draft Spec

Go check them out and provide feedback; it's the only way to ensre that the future specifications will satisfy your needs.

Saturday Apr 05, 2008

From the the EclipseLink Team Blog - We have a New Committer, Mitesh!

Head Shot of Tom Ware

Tom reports that Mitesh is a New Committer to EclipseLink (see the earlier announcement about EclipseLink and GlassFish v3). Congratulations, Mitesh!

BTW, we will have a quick overview of EclipseLink at CommunityOne, in the GlassFish track. Go ahead an register before it fills up!

Monday Mar 17, 2008

EclipseLink in GlassFish v3 - as JPA 2.0 Reference Implementation

Eclipse Logo over GlassFish's Sparky

GlassFish v1 and v2 use TopLink Essentials as its JPA (1.0) provider. TLE's bigger brother is EclipseLink (see Announcement), also led by Oracle but now including pretty much all of its TopLink product.

EL is a natural fit for GlassFish v3 and today we (Oracle, Eclipse and Sun) announced just that: EL will be used in GFv3 and it will be the RI for JPA 2.0 . Oracle has been doing a great job leading EL and there already is plenty of material available, including the Users Guide, and the Code Repository.

EL will be available under dual license, the traditional EPL and the BSD-based EDL License (see license.html@Trunk).

Our immediate focus will be on GFv3 - expect a build of EL with the latest GFv3 Milestone before the end of the week, but EL should work with GFv2 equally well and there is some interest already (see EL@GFv2 Thread); contact me if you were interested in that bundle.

Sunday Dec 16, 2007

Week Highlights - JPA poll, JRuby on UC, CommunityOne, Metro 1.1, OpenSSO B2

Cookie Jar

• Feedback - JPA Providers, GF Installation Experienc
• Events - Facebook Groups, JW Article, C1 Submissions, GF Day in Sydney
• OpenSSO - Build 2 Available
• Future Previews - Metro 1.1, New GFv3 Builds
• Web Tier - Session Identity for Mobile Devices
• Web.Next - JRuby in the Update Center
• Infrastructure - Shoal Article

Monday Dec 10, 2007

Poll on JPA Provider - Which do YOU use?

Current Snapshot of resuts

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.

Sunday Nov 11, 2007

JavaFX Script Client to GlassFish - Now with Resource Injection and Persistence

JavaFX Architecture - Big Picture

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.

Sunday Oct 14, 2007

How to use Hibernate with GlassFish

Informational Sign

Two tips on using Hibernate with GlassFish v2:
• From Max: Hibernate with NB and GF (also see Related Tutorials).
• From Eskatos, see his Quick and Dirty HowTo (also see Alexis' Commentary)

Sunday Aug 12, 2007

Tutorials on how to use GlassFish with ehCache and JPA, Hibernate and TopLink Essentials

Hong Kong from Victoria's Peak

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].

Tuesday Jul 31, 2007

JPA 2.0 and EJB 3.1 JSR Approved

JCP logo

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.

Thursday Jul 19, 2007

JPA 2.0 filed as jsr317


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.

Tuesday Jul 10, 2007

JPA & Seam in a sample application in a nutshell

Carol's photo

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.

Thursday May 31, 2007

OpenJPA with GlassFish

OpenJPA Logo

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.