Monday Jun 11, 2012

Petstore using Java EE 6 ? Almost!

Antonio Goncalves, a Java Champion, JUG leader, and a well-known author, has started building a Petstore-like application using Java EE 6. The complete end-to-end sample application will build a eCommerce website and follows the Java EE 6 design principles of simple and easy-to-use to its core. Its using several technologies from the platform such as JPA 2.0, CDI 1.0, Bean Validation 1.0, EJB Lite 3.1, JSF 2.0, and JAX-RS 1.1.

Pet Store

The two goals of the project are:

• use Java EE 6 and just Java EE 6 : no external framework or dependency
• make it simple : no complex business algorithm

The application works with GlassFish and JBoss today and there are plans to add support for TomEE.

Download the source code from github.com/agoncal/agoncal-application-petstore-ee6. And feel free to fork if you want to use a fancy toolkit as the front-end or show some nicer back-end integration.

Some other sources of similar end-to-end applications are:
Java EE 6 Tutorial
Java EE 6 Galleria
Java EE 6 Hands-on Lab

Tuesday Jun 05, 2012

Bert Ertman and Paul Bakker on Spring to Java EE 6 Migration Podcast

NLJUG leader and Java Champion Bert Ertman and Paul Bakker talk about migrating Spring applications to Java EE 6 in the latest issue of Java Spotlight Podcast, episode #85.

Bert and Paul talk about how to migrate your legacy Spring applications to use modern and lightweight Java EE 6 in five steps.

Bert Ertman Paul Bakker

The complete podcast is always fun but feel free to jump to 3:49 minutes into the show if you're in a hurry. They authored a series of article on the exact same topic starting here.

There is an extensive set of articles available that help you migrate from Spring to Java EE 6.

Subscribe to the podcast for future content.

Thursday May 10, 2012

Apache TomEE 1.0: 15th Java EE Compliant Application Server

Apache TomEE (pronounced "tommy") 1.0 is now released. Its basically vanilla Tomcat with Java EE 6 Web Profile features packaged together. This is the 15th certified Java EE 6 implementation and the certification is for the Java EE 6 Web Profile.

ALT_DESCR

The tested configuration shows the list and version of technologies included in this release. The home page provide more details about the technologies and download link.

Congratulations David Blevins and rest of the TomEE team!

Sunday Apr 08, 2012

Unlock the Java EE 6 Platform using NetBeans 7.1

NetBeans IDE provide tools, templates, and code generators that can be used for the specifications that are part of the Java EE 6 Platform.

Key to the Platform

In a recent article Geertjan builds a simple end-to-end application using the standard Model-View-Controller architecture. It uses Java Persistence API 2, Servlets 3, JavaServer Faces 2, Enterprise Java Beans 3.1, Context and Dependency Injection 1.0, and Java API for RESTful Web Services 1.1 showing the complete stack.

A self-paced and an extensive hands-on lab covering this article and much more is also available here. A video (47-minutes) explaining how to build a similar application can be viewed here.

Friday Mar 23, 2012

Tab Sweep - Upgrade to Java EE 6, Groovy NetBeans, JSR310, JCache interview, OEPE, and more

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

Implementing JSR 310 (New Date/Time API) in Java 8 Is Very Strongly Favored by Developers (java.net)
Upgrading To The Java EE 6 Web Profile (Roger)
NetBeans for Groovy (blogs.oracle.com)
Client Side MOXy JSON Binding Explained (Blaise)
Control CDI Containers in SE and EE (Strub)
Java EE on Google App Engine: CDI to the Rescue - Aleš Justin (jaxenter)
The Java EE 6 Example - Testing Galleria - Part 4 (Markus)
Why is OpenWebBeans so fast? (Strub)
Welcome to the new Oracle Enterprise Pack for Eclipse Blog (blogs.oracle.com)
Java Spotlight Episode 75: Greg Luck on JSR 107 Java Temporary Caching API (Spotlight Podcast)
Glassfish cluster installation and administration on top of SSH + public key (Paulo)
Jfokus 2012 on Parleys.com (Parleys)
Java Tuning in a Nutshell - Part 1 (Rupesh)
New Features in Fork/Join from Java Concurrency Master, Doug Lea (DZone)
A Java7 Grammar for VisualLangLab (Sanjay)
Glassfish version 3.1.2: Secure Admin must be enabled to access the DAS remotely (Charlee)
Oracle Announces the Certification of the Oracle Database on Oracle Linux 6 and Red Hat Enterprise Linux 6

Tuesday Mar 13, 2012

Java EE 6 sample code

Now that Java EE 6 has been out for more than two years, best practices and code samples seem to be easier to find than ever. Here are a few samples.

ALT_DESCR

Markus has just blogged about "Galleria example", a bitbucket-hosted set of end to end Java EE 6 sample code written by Vineet Reynolds (Markus now also has all the practical steps to use the code with NetBeans 7.1.1 and deploy to GlassFish 3.1.2). Other examples include Adam Bien's Java EE Patterns and Antonio Goncalves' Beginning EE 6 projects on kenai.com.

Of course there's also GlassFish sample code and their NetBeans equivalent (updated for GlassFish 3.1.2). In summary, you've got no choice - get going with Java EE 6 today!

Wednesday Feb 22, 2012

And then there were 14 compatible Java EE 6 implementations

With the recent addition of JBoss' Java EE 6 Full Platform product, the list of compatible servers is now set to no less than 14, a little after the 2-year anniversary of the platform.

With this much vendor choice (Open Source or not) and platform choice (Web of Full), it's a great time to be a Java EE developer and user.

Note that with all the new JSR's following the JCP 2.8 modus operandi, such public pages of compatible implementations should become the rule. This will of course apply to Java EE 7, but also to individual specifications.

ALT_DESCR

Friday Feb 10, 2012

Java EE 6 - Yet another Fujitsu compatible product

We now have a new Java EE 6 product in the family - Fujitsu Interstage Application Server V10.1, a different product from the one mentioned last summer.

Details in this Press Release reveal that other than support for the Java EE 6 Full Platform, it offers mobile features with support for jQuery Mobile.

Fujitsu Logo

The detailled tested configuration for this product should sound pretty familiar to readers with components such as EclipseLink, Weld, or Metro.

Wednesday Jan 11, 2012

JSF and HTML 5 intersection - Server Sent Events

Note: if you're reading this using a feedreader, please make sure you've updated to the updated TheAquarium feed.

Roger Kitain from the GlassFish JSF team has made available a recent article he wrote for JAX's Java Tech Journal titled "JSF 2 and HTML 5 Server Sent Events".

The article explores how one of many many HTML5 technologies, Server Sent Events (SSE), can be incorporated in a JSF UI. It includes sample code for creating JSF composite components used for a stock quote application that features server-initiated page refreshes (using SSE).

ALT_DESCR

While not as powerful as the WebSocket protocol, HTML 5 Server Sent Events can used to provide partial page refresh without moving away from the HTTP protocol.

.

Friday Jan 06, 2012

Tab Sweep - JSON, OSGi, GlassFish+NetBeans experience, JAXB and JodaTime, file uploads & more

Recent Tips and News on Java, Java EE 6, GlassFish & more :

Radio Receiver

JSON to Java with JDK6 (Julien)
What does the future hold for OSGi without leader Peter Kriens? (JAXenter)
JavaCloudGuy: Glassfish (Java EE 6) is now available as option in #cumulogic (Twitter)
JAXB and Joda-Time: Dates and Times (Blaise)
JAX-RS Tip of the Day: Using YUI2 and YUI3 DataTables with Jersey and jQuery (John)
JAX-RS @MatrixParam example (mkyong)
First experiences and getting started with GlassFish 3.1 and NetBeans 7.x – it’s a breeze (Lucas)
Maven's WAR Overlay: What are WAR Overlays? (DZone)
Book Review for "Java EE 6 with GlassFish Application Server" (Rick)
Managing unmanaged beans in CDI (Nicolas)
Using Bean Validation together with ExtVal in JPA and JSF (Edwin)
Java EE 6 using WebLogic 12c and NetBeans (Video) (Arun)
Spark, A micro Web Framework (spark.com)
Multiple File Upload Examples (John Yeary)
Released: NetBeans Platform 7, The Book (Geertjan)
Java 7: Understanding the Phaser (Niklas)
Where's my log file? (Nigel @ Open Messaging)
Sample: Java EE 6 + Wicket + NetBeans + GlassFish + MySQL (Geertjan)
Using Jsp in a Jersey JAX-RS RESTful application (François)
How to change the Glassfish server log level from command line (François)

Wednesday Dec 28, 2011

2011, a year of delivering on the roadmap

After 323 posts here on TheAquarium, 2011 is coming to an end. Let's look back at what we had hoped to achieve and how the GlassFish team (and others) delivered on the promises.

The most anticipated release after the Sun acquisition was probably the delivery of a fully-clustered GlassFish 3.1 in February (see this technical article). Soon after this release, our stats indicated massive uptake, and the follow-up 3.1.1 release aligned with Java 7, another key milestone in the Java world in 2011.

ALT_DESCR

2011 was also the year of Java EE 6 adoption with certifications from WebSphere 8, JBoss 6, Fujitsu Interstage, Apache Geronimo 3, Apache TomEE, and of course WebLogic 12c bringing the list of certified configurations to 12. It was also time to celebrate two years of Java EE 6 and GlassFish and to realize how long a way application servers had come.

Java EE 7-wise, the umbrella JSR was filed (JSR 342), with great progress on JMS 2.0, JAX-RS 2.0, javax.cache, and others, all with transparency. JavaOne was a good opportunity to recap the overall PaaS and platform rationalization direction.

We've stated the cloud and virtualization guiding principles for GlassFish evolution in September. The GlassFish 3.1.2 release is now well on its way and it is very much already possible to start playing with GlassFish 4.0 early bits (for instance to reproduce the JavaOne PaaS Keynote Demo). Finally we've also continued to deliver on portability of applications between GlassFish and WebLogic via even more sharing of components.

Other notable events include the migration of blogs and the project wiki as well as greatly improved Maven support (with Maven Central now hosting way more bits).

On the community side, we had another very successful community gathering and party at JavaOne and were very pleased to welcome an number of new faces in the engineering team. We also enjoyed a number of high-profile users such as espn, parleys, mollom, and more.

One final achievement that came in late in the year is the support of WebSocket in Grizzly. You can browse through a number of additional posts all tagged with frontpage.

Can we all do better in 2012? You bet!

You'll find other Java-related 2011 blogs on java.net as well as on the Java blog.