Adam Bien's Weblog

Tuesday Oct 27, 2009

Is Glassfish v3 Ready For Production?

Glassfish v3 is not released yet. The daily builds, however, are surprisingly stable and worth evaluation. Glassfish v3 is the reference (open source) implementation of Java EE 6 but comes also with some "interesting" extensions like OSGI support. I tested the following areas so far:

  • JSF 2.0 (navigation, data binding)
  • EJB 3.1 -  (Stateless, Singleton and Stateful Beans) and WAR deployment
  • EJB 3.1 embeddable container
  • JPA 2.0
  • Bean Validation (JSR-303)
  • JMS
  • REST (JSR-311)
  • WebServices (JSR-181)
  • Incremental deployment and EAR / WAR deployment
  • Migration of Glassfish v2 into v3
  • JSF 2.0 -> EJB 3.1 -> JPA 2.0 -> JSR-303 combination
  • Various administration console tasks
  • Most of the http://kenai.com/projects/javaee-patterns/ projects were tested / developed with Glassfish v3
Although I filed some bugs / enhancements - none of them were a real show stopper so far. Glassfish v3 is worth consideration for real world projects, but it is still fairly new technology. If you like innovation - go for it. If you don't need the Java EE 6 features, Glassfish v2 is still a good choice.


[my tweets]  Rss My book: Real World Java EE - Rethinking Best Practices

Kommentare:

Thanks Adam. GFv2.1.1 should ship any day now.

Gesendet von Alexis MP am October 27, 2009 at 11:32 AM CET #

Adam,

would you consider this even in a clustered environment or only as single instance?

-Markus

Gesendet von Markus Eisele am October 27, 2009 at 12:42 PM CET #

Hi Markus,

see: http://www.adam-bien.com/roller/abien/entry/ha_without_clustering

thanks,

adam

Gesendet von Adam Bien am October 28, 2009 at 02:15 PM CET #

Hi man. Can you share some knowledge on how to deploy (correctly) EAR in glassfish v3?

here is a link to my post in java.net: http://forums.java.net/jive/thread.jspa?threadID=68567&tstart=0

I have problems with loading jar files from the ear in glassfish v3. It works perfectly in glassfish v2.1.

Thank you and great post. Any help will be really welcome.

Gesendet von dpandulev am October 28, 2009 at 04:05 PM CET #

Hi Dpandulev,

NetBeans < 6.8b has a bug. It creates an invalid EAR. I guess this is your problem.

I tested EAR deployment in "exploded" and archive format. It worked in either case.

Just check out a random http://kenai.com/projects/javaee-patterns/ project and try it.

thanks for the nice post!,

adam

Gesendet von Adam Bien am October 28, 2009 at 04:38 PM CET #

Thanks for the fast answer but i use eclipse and glassfish eclipse plug-in. I generate the EAR and deploy it by the plug-in. It work's with NO problems in GF v2.1.

Gesendet von dpandulev am October 28, 2009 at 05:03 PM CET #

Hi Dpandulev,

try to deploy with that: asadmin deploy --property compatibility=v2 foo.ear

It is the GF v2 compatibility mode...

thanks!,

adam

Gesendet von Adam Bien am October 28, 2009 at 11:26 PM CET #

Adam, do you know if GF v3 processes mixed exploded/archived ear ? The v2.1 had a problem with that. When I deployed an EAR with JBoss Seam session bean jar with netbeans, it exploded my ear but kept the Seam jar archived, and GF issued an exception and caused deployment to fail. To circumvent this problem, I used to deploy the app as a web module, without EJB support.

Gesendet von Geraldo Luiz am October 29, 2009 at 07:10 PM CET #

Well, as for GF3 b70 I cannot start the GUI-Admin. I get a ServletError. I checked the server.log and I found that there is a NullPointerException when trying to load the default theme for the GUI.

Gesendet von Carlos am October 30, 2009 at 03:18 PM CET #

Hi Adam..

I am ting to make CriteriaQuery work on Java EE 5. I is possible to make it work?
I am using eclipslelink 2.0 M11.
Any suggestion.

Tanks

Gesendet von Elvis Ratzlaff am November 10, 2009 at 08:24 PM CET #

Hi Elvis,

Java EE 5 comes with JPA 1.0. For criteria you will need JPA 2.0 and so Java EE 6. If you hack the server (replace the JPA API), it should be possible. Otherwise you will get a problem with the API...

thanks!

adam

Gesendet von Adam Bien am November 11, 2009 at 10:31 AM CET #

Senden Sie einen Kommentar:
  • HTML Syntax: Ausgeschaltet
Interviews/About
My Recent Book
Java One 2009
CommunityOne East N.Y.C
JavaONE 2008 Interview
Search
...the last 150 posts
...the last 10 comments
greenfire.dev.java.net
Links
my.netbeans.org
Visitors
License