Thursday Jul 10, 2014

Spotlight on GlassFish 4.0.1: #2 Simplifying GF distributions

'Spotlight on GlassFish 4.0.1' is a series of posts that highlights specific enhancements of the upcoming GlassFish 4.0.1 release. It could be a new feature, a fix, a behavior change, a tip, etc.

#2 Simplifying GF distributions

For any particular GlassFish release, we used to have different distributions. We had an English and a multilingual (ML) version of GlassFish. We had a Zip based distribution. We also had versions with a native installer... on different platforms (Windows and Unix's). Finally, from a Java EE standpoint, we had 2 types of distributions: Full Platform and Web Profile. If we factor in all those criteria’s together, this gives 12 different distributions!  And that was just for the Open Source edition of GlassFish! Needless to say that this was costly and not necessarily very useful as clearly, the statistics shows that the Zip distribution was the most popular one.


GF 4.0 Download Wizard

For 4.0.1, we have decided to greatly simplify this by only producing 2 Zip based distributions: a Web Profile distribution and a Full Java EE Platform distribution. To install GlassFish 4.0.1, you just need to unzip the archive in the desired location. And GF is already pre-configured and ready to be started (the only assumption is that you have a JDK installed). The advantage of the Zip distribution is that it is simple and universal, it works on any platform. This approach is also very convenient when it comes to script GF installation. Other open source application server are also using Zip distributions, so we should be on the right track.

Thursday Jul 03, 2014

Spotlight on GlassFish 4.0.1: #1 JDBC Realm

'Spotlight on GlassFish 4.0.1' is a series of posts that highlights specific enhancements of the upcoming GlassFish 4.0.1 release. It could be a new feature, a fix, a behaviour change, a tip, etc.

#1 JDBC Realm for user authentication

There has been some refactoring between GF 3.x and GF 4.0. One unfortunate consequence of that refactoring is that the JDBC Auth Realm package has changed between those 2 GF versions. This can cause some obvious issues when moving,  from GF 3.x to GF 4.0, an application using the JDBC Realm!

GF 3.x was using com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm while GF 4.0 is using  com.sun.enterprise.security.ee.auth.realm.jdbc.JDBCRealm
GF 4.0.1 will fix this and revert back to the original com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm package!

If you want to know more...

  • Check the original Jira ticket for some background
  • Read the JDBC Realm section of the Java EE Tutorial
  • Test it today using the latest version of this sample in the trunk of the Java EE Tutorial
You can also help us to test GF 4.0.1 more broadly via the FishCAT Program.