Tuesday Jul 10, 2007

New Controls In TopLink Essentials

Image of a Bowl of Rice

Fine-grained control. That's the theme for two new features which Wonseok has implemented in TopLink Essentials (TLE).

The first is a category-specific logging level control. It allows you to turn up logging for one area of TLE (such as its SQL-related logs) without impacting logging in other areas (such as the cache-related logs). The second is a new cascade refresh query hint. It provides runtime control over whether you want a refresh operation to cascade through to related entities or not.

Sometimes it's little knobs like these that can make a world of difference. So be sure to check out the details in Wonseok's writeup.

Tuesday Nov 14, 2006

Wonseok Kim - New Committer at TopLink Essentials

Let's get going Duke

The TopLink Essentials committers have approved Wonseok Kim as a new committer. We used a strawman approval process: Tom Ware was the advocate and submitted Wonseok's name and provided context, the TLE committers voted, and Tom carried the count and reported on the results.

TopLink Essentials is the Reference Implementation of the Java Persistence API, a project in the GlassFish Community. TLE is gaining good adoption and it runs with at least these containers: GlassFish (v1 and v2), SunAS 9.0, OracleAS, Spring 2.0, JEUS 6 and EasyBeans. The volume on its mailing list has been growing nicely in recent months.

Wonseok is our first committer outside of the original committers from Oracle and Sun. A very warm welcome.

Saturday Oct 07, 2006

Managing your Persistence Layer -- Qwickr Supports GlassFish

GlasFish Duke

Quickr now supports GlassFish.

Quickr is a tool for managing the persistence layer that is centered around the Java Persistence Query Language. It provides a good environment with the ability of exploring the content, make interative queries, online help, etc.

Check the home site, and the Online Tour.

Friday Oct 06, 2006

JAXB Plugins Galore... Including HyperJAXB3: JAXB + Persistence

Duke - Lets get Going

The JAXB plug-in mechanism is proving very successful andt the community has produced a substantial number of plug-ins. Full directions on how to write plug-ins are here. Many plugins are available at JAXB2-Commons, others reside in their own projects. Plug-ins include: Fluent API, CamelCase Always, Value Constructor, Default Value, Interfaces, Equals, ToString, Jakarta-Commons-Lang, and JAXB Workshop.

Kohsuke regularly provides updates on the JAXB community; he recently reported on New Plug-ins and on the HyperJAXB3 plugin that links JAXB with JavaPersistence.

Tuesday Sep 26, 2006

Using Log4J (and others) as the Logger in TopLink Essentials

A Marine Log

More Logging...

Wonseok has a followup to his earlier blog where he showed how to Configure a Logger Type in TopLink Essentials. Wonseok proposed a new feature based on that blog, which was discussed by the Development team (including Oracle and Sun) at the persistence@glassfish.dev.java.net (e.g. thread). The result allows customization of the logger, including, for example, log4j.

Check Wonseok's blog for details. And please consider posting back your specialized logger, if you need to write a new one.

Monday Sep 11, 2006

Portability of Java EE 5 Applications

House moved over a bridge

Adam argues that Java EE 5 applications are More Portable than in earlier (lesser!) releases. Part of this is the natural progression in the specs. Part of this is the Plugability of the JavaPersistence API implementations: in his case he is switching back and forth between Hibernate/JBoss and TopLinkEssentials/GlassFish.

Check here for other Java Persistence entries, and, if you are interested in portability of your apps, you may want to read about the AVK (see [1] and [2]).

Sunday Sep 10, 2006

Understanding the Caching of TopLink Essentials (Project GlassFish)

Picture of TopLink Cache Architecture

The implementation of Java Persistence API at Project GlassfiFish is TopLink Essentials. Caching is a key feature in any practical implementation of Java Persistence and Wonseok (from TmaxSoft) has just posted a detailed desciption of How Caching works in TopLink Essentials.

TopLink Essentials is used in a number of commertial distributions of GlassFish including Sun (SJS AppServer 9.0 and NetBeans), TmaxSoft (JEUS 6), and Oracle, the original contributor of the technology (see Doug's recent entry on the Previews of OC4J and JDeveloper).

Tuesday Jul 18, 2006

More AJAX, Java Persistence and JSF at Java Blueprints

Photo of Mark Basler

Mark summarizes a recent Update to Java Blueprints that includes new samples in AJAX, Java Persistence and JavaServer Faces. Mark's blog is very clear and provides links and descriptions to all the components. The Blueprints Catalog web site has also been updated; there is now an entry page to the AJAX and Java EE Solutions and one for Java Persistence API.

The Java Blueprints Catalog is also integrated within NetBeans, and Geertjan talks about the benefits of the integration (I believe his screenshots are for NB 5.5 beta 2, which will be out very soon).

Tuesday May 30, 2006

JPA Delivers Portability - Kodo, WebLogic and GlassFish

Diagram for Kodo

BEA released Kodo 4.0 during JavaOne together with a version of WebLogic 9.2 that has an early preview of EJB 3.0 (other portions of Java EE 5 are not yet there). Sahoo checked Kodo and he reports that Kodo succesfully plugs into GlassFish. Additionally his friend Pinaki Poddar at BEA has written some Web Application examples using EJB 3.0 and JPA [1], [2], and then checked that the whole thing can be Migrated to GlassFish.

This pluggability provides additional options to the developers. For example, the GlassFish users can now choose between the bundled GF JPA implementation, Hibernate or Kodo. Those guarantees will Speed up the Transition to JPA.

Thursday May 04, 2006

Plugging JPA in and Hibernate Out...

Duke Waving

We are seing a very fast transition to the new Java Persistence API. The containers are almost all there, starting with the JPA Reference Implementation in GlassFish, which is Almost Final and available with GlassFish and as a Separate Bundle. See Marina's Blog for directions on how to use it, and also Other TA entries.

Other groups are moving very fast too. Hibernate supports JPA ([1], [2], [3]), and BEA's Kodo is also in good shape. The Apache community is also moving in that direction; they seem to be lagging a bit but I expect them to move quickly soon (Cayenne, Open JPA).

The extra, and important, benefit of JPA is that it is possible to Mix and Match. We have already started testing the GF RI with other containers, and other JPA implementations with GlassFish.

All this creates an ideal situation for the customers, and I expect a move towards replacing the Hibernate-specific dependencies with standard-based, JPA, dependencies, as described in Spring and JPA or in Roller and Hibernate. And new applications, like NetBeans and CRUD, are all written against JPA. Interesting times ahead!

From Finding Nemo to CRUD - and see you at NetBeans Day!

A Clown Fish

Pavel sees all the attention that his CRUD on NetBeans is getting (at The Aquarium, SunTech Day and elsewhere) and reflects on the satisfaction of Seing a Baby Grow up (like in Finding Nemo).

Check Pavel's blog for some technical details about the approach taken to generate the App (one-way generation into JPA and JSF) but you will see all details at NetBeans Day and at JavaOne.

Monday May 01, 2006

Way to Go! JCP approves final specs for Java EE 5, EJB 3.0, Java Persistence API, and more...

Alonso on a Renault

The JCP has approved the final versions of the Java EE 5 Platform (results), Enterprise Java Beans 3.0 and Java Persistence API (results), JSP 2.1 (results), and JSF 1.2 (results). Check the voting records: everybody voted, and everybody voted YES on all (but for one abstention vote on JSF 1.2); this shows wide support for the new specs.

Previously the JCP had approved the WS specifications. Now just waiting for the TCK and RI (GlassFish) to complete.

Sunday Dec 04, 2005

Web Application Example using Java Persistence

Picture of Sanjeeb Sahoo

Sanjeeb Sahoo has a detailed posting on how to use Java Persistence in a Web Application, including code and instructions on how to use it on GlassFish. I have not had an opportunity to follow the directions, so let us know how well they work for you.