Tuesday Jun 19, 2012

LightView: JavaFX 2 real-time visualizer for GlassFish

Adam Bien launched LightFish, a light-weight monitoring and visualization application for GlassFish. It comes with a introduction and a screencast to get you started.

The tool provides monitoring information about threads and memory (such as heap size, thread count, peak thread count), transactions (commits and rollbacks), HTTP sessions, JDBC sessions, and even "paranormal activity".


In a recently released first part of a tri-part article series at OTN, Adam explains how REST services can be exposed as bindable set of properties for JavaFX. The article titled "Enterprise side of JavaFX" shows how a practical combination of REST and JavaFX together.

It explains how read-only and dynamic properties can be created. The fine-grained binding model allows clear separation of the view, presentation, and business logic.

Read the first part here.

Tuesday Apr 10, 2012

Java EE 6 and Maven 3 using CLI

NetBeans and Eclipse provide tools, templates, wizards and code generators for building a Java EE 6 application. They both also allow a Java EE 6 Maven project to be created. In his recent screencast, Adam Bien explained how a Java EE 6 project can be easily created at command-line using Maven 3.

Java EE 6 using Maven 3 Screencast

The screencast walks through the process of creating the project using command-line. The created project has no dependency on NetBeans and GlassFish but can still be opened in NetBeans and deployed on GlassFish.

A complete list of Adam's screencasts are available here. Tons of similar videos are also available on GlassFishVideos channel.

Friday Mar 16, 2012

LightFish, Adam Bien's lightweight telemetry application

Adam Bien (Java Champion, JavaEE expert, book author, etc...), has been a GlassFish enthusiast for a while and he proves it again with his new open source project - LightFish, a lightweight monitoring and visualization application for GlassFish.


Adam has a short intro and screencast about this standalone WAR application. The tool uses the new JavaEE 6 self-described JDBC connection and the GlassFish-bundled Derby database to provide drag-and-drop install.

At runtime, once monitoring is enabled, calls to the RESTful admin API for GlassFish are emitted from a JavaFX dashboard plotting in real-time telemetry data on charts and graphs, including data for "Paranormal Activity". Check it out!

Wednesday Jan 11, 2012

Another thought-provoking Java EE article by Adam Bien

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

The latest article by Java Champion Adam Bien (and top Author at OTN) is out: "Interfaces on Demand with CDI and EJB 3.1".

This one focuses on leveraging the simplifications introduced by Java EE 6, CDI and EJB 3.1 (namely the no-interface view) and Adam makes the claim the "Premature Extensibility Is the Root of Some Evil" and that a lot can be done about removing code and layers whenever they're not fully justified.

Mille Feuilles

His 2-part interview on the GlassFish Podcast #68 and #69 is probably a good complement for his latest article.

Thursday Jan 13, 2011

Java champions on the value and portability of CDI

Adam Bien Antonio Goncalves

In his latest Java EE article (published in the Jan/Feb issue of the Oracle Magazine) Java Champion Adam Bien describes CDI (Context and Dependency Injection) as the standard glue, arguing that it "(brings together) the different parts of the Java EE 6 specification" while introducing "many powerful features such as events, interceptors, decorators, standardized extension points, and the service provider interface".

Adam's article goes on to illustrate the integration with EJB, BeanValidation, and JSF while implementing the Entity Control Boundary (ECB) pattern with clearly identified boundary, control, and entity packages.

Meanwhile fellow Java Champion Antonio Goncalves takes Weld (the CDI reference implementation) for a ride in various server configurations. This ranges from a standard Java EE 6 server (GlassFish) with CDI fully integrated and ready to use to other non-specified environments but which Weld supports : Java SE and Tomcat. This is the first in a series of blogs, so make sure you keep an eye on Antonio's blog.

Sunday Mar 22, 2009

Agile Adam - 50 minutes, 0 slides


Adam Bien is back from CommunityOne East in NYC and his "Pragmatic Java EE development" session is already online along with a few others. There are no slides, just code.

While Adam uses NetBeans and GlassFish, the session is not about using wizards that generate code in you back but rather standard, convention over configuration, Java EE 5 artifacts. This was apparently all done on a brand new laptop with very little time to setup the environment.

The pace of this presentation is good (I believe the "deploy-on-change" helps a bit here) and from the batch of questions received, I can certainly relate to how difficult it is to appeal to both people that take Java EE 5 for granted (and want to see EE 6 in action) and people seeing JAX-WS, EJB 3, and JPA for the first time.

Sunday Nov 02, 2008

Adam's latest article : From legacy technology to secret weapon

JavaWorld logo

GlassFish users probably take EJB 3, JPA, and dependency injection for granted but with others application servers reaching Java EE 5 compliance, Adam Bien's article on EJB 3 at JavaWorld is very timely. The article discusses how EJB 3 streamlines enterprise development and make them an appropriate technology for large but also small and midrange applications.

Adam states that "(EJB's) are in fact the only vendor-neutral and portable solution for enterprise server-side applications" and goes on to contrast EJB 3 with previous versions from a developer perspective. The article describes how lookups and factories are replaced with dependency injection, the POJO + annotation approach, but also covers the use of ejb-jar.xml as well as interceptors (described here as lightweight AOP).

The article concludes with EJB 3.1 upcoming enhancements such as easier packaging (WAR), no-interface views, singletons, etc... Make sure you try the EJB 3.1 preview available from the update center of GlassFish v3 "Prelude".