Saturday Sep 12, 2009

Choosing The Right GlassFish v3 Bundle For You

ALT DESCR

GlassFish v3 is available in a number of download bundles. The bundles are available at different locations: the Community Download Page and the JavaEE Preview SDK, with different installer technologies: ZIP file or an installer and with different feature sets: Web or Full Profile.

Alexis has written a good summary of the issues involved to help you navigate through these options. Check it out, and continue to get ready for the GF v3 fcs release.

Sunday Sep 06, 2009

JSR 299 and 330 progress in latest GlassFish v3

Code snippet

As previously reported last month, JavaEE 6 will include JSR330 and JSR299. Roger Kitain already has a simple yet detailed blog entry on using JCDI (JSR 299, ex-WebBeans) in GlassFish. He walks through JSF 2.0 and JSR 299/JSR 330 code. You'll see there @Inject, @Qualifier, @SessionScoped, @ApplicationScoped, all in action.

If you're curious enough to test this sample, I would recommend using NetBeans 6.8 M1 - register a recent GlassFish v3 build (promoted build web 62 for instance), create a Web Application with Java EE 6 as the platform level and copy paste the various pieces. No further settings are required.

Overall, this shows progress since Cay's previous entry on the topic. Other posts on similar topics are marked with the "jsr299" and "jsr330" tags. Keep an eye on Roger's blog for more entries on this topic.

Thursday Sep 03, 2009

Logging Improvements in GlassFish v3

Carla has provided an overview of 3 new logging related commands in GlassFish v3:

ALT DESCR

• asadmin rotate-log
• asadmin list-logger-levels
• asadmin set-log-level --level level logger-name

Upgrade to the latest GF v3 and try it out.

Wednesday Sep 02, 2009

GlassFish v3 Preview Updated

ALT DESCR

It took a bit longer than anticipated, but we have updated the repositories behind GlassFish v3 Preview (STABLE from glassfish.sun.com). You are most likely to notice this through the see new SoftwareUpdate tool, but you might also see it through the GUI UpdateTool or the embedded UpdateTool, or do it manually via the CLI.

Full details in Alexis writeup and Abhijit's announcement.

The whole thing has been working very well for me in recent builds but this is software, so please let us know if you experience any issues.

Wednesday Aug 26, 2009

GlassFish v3 Monitoring - DTrace, REST and More...

ALT DESCR

Prashanth has written a detailed description of the new monitoring framework in GlassFish v3, which includes descriptions of the basic concepts of probes, probe provider and probe listeners.

Probe providers include both class-based and XML-based providers, where the framework will automagically create a provider without requiring modifications to the existing code. Probe listeners are called from the providers to produce the desired information; for example statistics are generated by StatsProviders.

Prashanth's note also describes how to expose the probes to DTrace and to a OS-agnostic scripting client, and how this is used by different clients, including: JMX/AMX, REST, the Admin console and asadmin. Overall, a great overview - check it out.

PS. I was on vacation last week, just catching up now and I missed announcing the JavaEE 6 and GF v3 webinar from this morning; from what John told me and what I read in the Twitter posts, it was very successful: more than 4K subscribed, and over 1200 attended.

Friday Aug 14, 2009

GlassFish Releases - Updated Comparison Table

ALT DESCR

Alexis and Paul have updated the GlassFish Release Feature Table that compares GlassFish v2, v3 Prelude and v3 Preview. My shortened summary is still applicable:

v2.1 is for production deployments, v3 Preview is a beta for v3 final and v3 Prelude is/was a transitional release...

Wednesday Aug 12, 2009

More JSF 2.0 Examples - Pets and Calendars

ALT DESCR

More JSF 2.0 samples:

• Carol has converted the Pet Store to Use JSF 2.0, JavaEE6 and GFv3 preview,
• Jim shows how to take a YUI calendar widget and integrate it in a JSF 2.0 page,
• ... and then takes that widget and Moves it into a JSF Component.

Tuesday Aug 11, 2009

Updated GlassFish v3 FCS Schedule

A couple of weeks we provided an update of the GlassFish v2.1.1 Schedule; it's now time to do the same with that for GlassFish v3.

The key driver for GlassFish v3 is JavaEE 6. This means GFv3 leverages the expertise of the wide JCP community and our users have the benefits of a standard but... it also means we don't control all the variables - which is ultimately good, but can be painful in the short-term.

ALT DESCR

We knew things could get complicated when JSR 330 appeared in mid-May, after the PFD for most of JavaEE 6, and was later accepted by the JCP EC. The relationship between JSR 330 and JSR 299 was resolved recently and both will be part of JavaEE 6, so it was just a matter of doing the numbers, and...

The answer is about 8 weeks. The updated GF v3 Roadmap puts the FCS at Nov 24th, just in time for Thanksgiving@USA. The change propagates to NetBeans 6.8 (roadmap) as well as follow-up releases to GFv3 (exact dates still shimmering).

So, that's the new date. It's actually quite good, considering the magnitude of the last-minute change. Overall, I know 330 will make for a better release - just let's hope that next time submissions don't come so late in the cycle... See GlassFish+v3

Sunday Aug 09, 2009

Get Ready for the Software Update Tool

We have been converting our distributions to leverage the new IPS format. Recent conversions to IPS include OpenMQ 4.4 and some distributions of GFv2.1 but the distribution with the largest volume remains GFv3 Preview.

The current release of GFv3 Preview uses pkg.sun.com/glassfish/v3/stable/. These packages were last updated before J1 (except docs) but we will soon push out an update based on an stable promoted build and when that happens you are likely to encounter the New SoftwareUpdate Tool.

ALT DESCR

The SoftwareUpdate tool provides a simplified interface to the standard UpdateTool, normally activated via a PopUp Notice. A single click Starts a Search for all the Apps that can be updated. Once Completed, choose the Apps you want to update, accept the license terms, and install.

The SoftwareUpdate tool will report on the progress of the install: [1], [2], [3]. Once Completed you are done. The underlying machinery is the same used in the UpdateTool, and you can peek into the details, both before installing and after installing, but the SoftwareUpdate experience is faster and simpler, and more appropriate for most users.

IPS is one of the key new technologies that we are leveraging for GlassFish v3; related entries are tagged IPS. If you want more technical details, Christophe has a very good Presentation as part of the IPS Best Practices wiki. Also check the UC2 Blogs.

Friday Aug 07, 2009

Using REST Interface to Configure GFv3

ALT DESCR

Rajeshwar has written a short description on how to use the GlassFish v3 REST Interface to Configure GlassFish; this complements his previous entry REST and Monitoring and, like that one, it also has examples using a Jersey-based client - included in the post.

Related entries are tagged REST+GlassFish+v3.

PS. Picture at left shows the anterior eyes of a Jumping Spider.

Tuesday Aug 04, 2009

JavaEE 6 Will Include JSR330 and JSR299

ALT DESCR

Java EE 6 will include JSR 330 and JSR 299. Roberto explains the changes:

• JSR-299 will be updated to use the JSR-330 annotations
• JSR-330 has evolved to take into account requirements from JSR-299
• Both JSRs will be part of the Java EE 6 Platform

Thanks to everybody that worked so hard to make these changes; obviously we wished this had happened earlier in the Java EE 6 cycle but the result will be an improved platform. We estimate that the final release of Java EE 6 (and GFv3) will be around November but we should have specific dates next week.

Check out Roberto's Announcement for details.

Monday Aug 03, 2009

The First NetBeans Milestone for JavaEE 6

ALT DESCR

Ludo seems to win the race to be the First to Announce it, but NB6.8 M1 is now available for download. This is the first build that provides JavaEE 6 support, including a bundled GlassFish v3 (b57).

See New And Noteworthy and Ludo's Post for details. Download the different bundles from the NB6.8 M1 page.

Added - Reviews from:

• Adam Bien - "Netbeans 6.8m1 - The (lightweight) Java EE 6 IDE"
• James Branajam - More About NB 6.8 M1

Tuesday Jul 28, 2009

Want to Help with Community Events for GlassFish v3 FCS Launch?

ALT DESCR

Let me know if you want to help with the community launch of GlassFish v3 FCS. We will pull together a small coordinating group to work on this in the next few weeks...

Saturday Jul 25, 2009

Check this Virtual Tour of Sun's DataCenter - And GlassFish v3 Launch?

I've only used Second Life a couple of times and in either time I didn't spend enough time to have a good feel for the experience - I'll confess I'm not a gamer, unless you count the occasional GT5 and Rock Band - but Mary pointed me to a recent event that seemed compelling.

ALT DESCR

You may have heard about Sun's DataCenters in Broomfield and in Santa Clara. Greg P and Dean Nelson recently hosted an event at Second Life that focuses on how to improve cooling through different arrangements in those Data Centers.

Check out Mary's note or go see the video; I found it useful and even entertaining. You can also go directly to the Sun Pavilion in Second Life, the artifacts are there, but I couldn't figure out how do something like play with the airflow simulation during my short visit.

On a related topic, we have been talking about doing an online event for the GlassFish v3 FCS launch. If you are interested in applying to be in the organizing committee, send me email with your info.

Friday Jul 24, 2009

Overview of OSGi Support in GlassFish v3

ALT DESCR

This is a short overview of how GlassFish v3 provides support for OSGi through pointers to the work / posts of Richard, Sahoo, Jerome and many others.

The story starts with an OSGi-core that is used in a system that is organized around the notions of a kernel, services and components. A good overview is Jerome's presentation at JavaOne, TS-4923.

For the basic deployment check Jerome's GFv3 Extensions: Managed OSGi bundles which explains how asadmin deploy --type=osgi myosgibundle.jar will deploy an OSGi bundle: GFv3 installs the bundle in the OSGi framework, starts it and also records the information in domain.xml, so asadmin list-components will show that an OSGi bundle has been deployed. Note you can then Use the Felix Web Console to browse through the OSGi bundles.

There are other ways to activate the same deployment machinery and, in Using filesystem operations to manage OSGi bundles in GlassFish, Sahoo shows how GFv3 leverages Apache Felix's FileInstall to allow autodeploy via the autodeploy-bundles/ directory.

Jerome's next two posts describe an extension in GF v3 that allows applications to use @Resource to refer to OSGi services. In the first one, GF v3 Extensions: Spring, Java EE 6 and OSGi, the service is a Spring Bean that is exposed to the OSGi service registry using Spring DM, while in GF v3 Extensions: OSGi Declarative Services he just uses the standard OSGi Declarative Services, which were made part of the standard GF v3 bundle starting with b55

More posts in a future installment...