Tuesday Apr 24, 2012

Server Side Events with HTML 5 and GlassFish

While this is not the first post on Server Side Events,  Bhakti and Jitu continue the discussion of using Server-Side Events (SSE) as HTML 5, Java EE 7, and GlassFish Server move full steam ahead.

The blog posts include example source code that can be deployed to recent (trunk) builds of GlassFish Server.  Bhakti uses SSE and CDI to build an application that tracks a twitter search, while Jitu discusses how GlassFish adds a bit more abstraction for the developer and references a video player sample application available in the GlassFish trunk.

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

Monday Jan 23, 2012

Java EE 7 progress - CDI 1.1 EDR and Weld 2.0 Alpha

Having the Early Draft Review of JSR 346 (CDI 1.1) available for review and studying is good but having an early implementation to go along is even better.

That's what JBoss' Jozef Hartinger has recently announced on his blog - an alpha release of the future Weld 2.0 reference implementation.

Weld Logo

According to Jozef, the main purpose of this release is in fact to provide a feature-complete implementation of this draft CDI specification and features such as CDI.current(), application life-cycle qualifiers, beans.xml manipulation using ProcessModule, and many others.

As a reminder CDI 1.1 is scheduled to be integrated in the upcoming Java EE 7 platform later this year.

Monday Nov 28, 2011

NetBeans 7.1 Release Candidate (RC) 1 is here

NetBeans 7.1 RC 1 is here. Grab it from the usual place!

As previously discussed, NetBeans 7.1 has full JavaFX 2.0 support but also a lot in store for Java EE and Web developers (CDI in particular is very neat).

ALT_DESCR

One of my personal favorite feature is that Deploy on Save is now set by default on Maven projects. Maybe one important part that didn't get proper coverage so far is CSS 3 support, an important feature which can be used from both Java EE and PHP but also from JavaFX.

Java Downloads of NetBeans 7.1 start at 69 MB and a 166 MB download will get you everything you need to start coding right away with Java EE - a great tool and a fully integrated runtime (GlassFish 3.1.1).

You really need to be not using Maven, not be interested in recent standards (Java EE 6, Java SE 7, Java FX 2.0, ...) and like to hand-craft assemble your IDE to afford ignoring NetBeans nowadays.

Thursday Oct 20, 2011

CDI 1.1 progress - yet another Early Draft

On the last day of JavaOne 2011, JBoss' Pete Muir announced that CDI 1.1 (JSR 346) had reached the early draft stage.

While a hot topic it seems, XML configuration for CDI has not yet made it into the current specification.

ALT_DESCR

Other yet-to-be-addressed features as well as other Java EE 7 areas worth tracking are listed on Pete's blog entry.

Java EE 7 is really under heavy development and bleeding edge connoisseurs are probably getting excited.

Monday Oct 03, 2011

NetBeans 7.1 beta - 50+ CDI enhancements in Java editor

NetBeans 7.1 beta is here and while Java FX 2.0 (which just shipped here at JavaOne 2011) is the main theme for this release, there are also a number of improvement for Java EE and GlassFish developers.

ALT_DESCR

In addition to Vince Kraemer's Cluster and Instance Deployment description, this "New and Noteworthy" page lists of the new Java EE-related features, including no less than 50+ CDI enhancements in the java editor including some very neat hints for decorators and interceptor bindings but also great JPA improvement with (for instance) code completion for table names, column names and persistence unit names.

Check it out and remember to file issues as you find them!

Friday Sep 02, 2011

Tab Sweep - JCache, REST, CDI samples, JavaOne, ... and James' new gig

Recent Tips and News on Java EE 6 & GlassFish:

Radio Receiver

JCache: Alive and Going to be Part of Java EE 7 (QCon)
Unit Testing for Java EE (Adam)
REST-JEE (minuteproject)
Autumn JavaEE workshops, sessions and events (Adam Bien)
Java SE 7 - New File IO (Dr. Dobb's)
Java EE 6 examples of CDI usage (code.google.com)
JavaOne 2011 : un Hands-On Lab Serli / Oracle (Serli)
Mapping XMLTYPE (Shaun)
GlassFish 3.1.1 and JDK 7 Webinar replay (GlassFish Videos)
OTN Developer Day New York, September 14th 2011 (OTN)
Java EE 7: The Voyage of the Cloud Treader (Werner)
I've moved again (James Gosling)

Tuesday Apr 26, 2011

More Java EE 7 progress - CDI 1.1 can start

Following last week's results of the EJB 3.2 JSR Review Ballot we now have another result: CDI 1.1 has been accepted by the JCP Executive Committee with 10 YES votes and 1 non-vote (VMWare).

CDI work in progress

This previous post has some context on the goals of CDI 1.1 and links to relevant URLs. You'll note that IBM has casted a YES vote with an interesting technical comment on what they feel should be in Java EE vs. CDI and on more clarification vs. JSR 330 (or its successor). Details are on the voting result page.

You can also read this short post from the Pete Muir, the CDI 1.1 specification lead.

Wednesday Apr 13, 2011

Marching towards a Java EE 7 fullhouse of JSRs - CDI 1.1 & EJB 3.2

You might have missed (I did) the filling of the EJB 3.2 JSR last week. This is the follow up to Linda's "EJB.next" entry posted last month. In addition to the multi-tenancy cloud requirements, factoring out transactions in a similar way interceptors became a standalone specification is one of the interesting goals of this work.

Just yesterday JBoss/RedHat has also submitted JSR 346, aka CDI 1.1 and Pete "CDI/Weld" Muir has a blog with further details. We're looking here mainly at an incremental release with improvement such as allowing the built in implementation of the conversation context to be used outside of JSF (full list). Pete is calling for expert group members, if you are interested the link to apply is on the JSR page.

ALT DESCR
ALT DESCR

With each submission, a two-week voting period by the JCP Executive Committee starts. This means that the EJB 3.2 results will be available this coming Monday (April 18th) and the CDI 1.1 results a week later on the the 25th.

In the meantime, on the CDI side you should probably give this recent "Contexts and Dependency Injection in Java EE 6" article a read and make sure you're well aware of what Java EE 6 and CDI have to offer today.

Friday Feb 11, 2011

Antonio on Java EE today (CDI) and tomorrow (JavaEE7)

Java Champion Antonio Goncalves now has a follow-up to his earlier boostrapping CDI entry discussing how CDI's @Inject can simplify (unify?) dependency injection code inherited from Java EE 5 practices and illustrates this with sample code from his book.

On a similar topic, this very short blog by Adam Bien has a good discussion thread and a follow-up post on performance implications of injection and scoping choices.

Antonio

While Java EE 6 is still very new to most enterprises (including those Antonio works for), Java EE 7 work has indeed started and Antonio also takes this opportunity to discuss the non-Cloud features of the platform and the amount of work an energy it requires to drive JSRs to completion based on his Java EE, EJB and JPA past experiences.

Tuesday Jan 18, 2011

Weld 1.1 is here! Shipping with GlassFish 3.1

Weld Logo

Pete Muir has announced the release of Weld 1.1, the reference implementation of CDI 1.0. This is the release GlassFish 3.1 will ship with as previously discussed, and the last Pete worked on as the lead. Congrats to him on his new role and thanks for all the fish!

There's been quite of CDI and Weld coverage here lately, so here's a quick recap :
Weld Extensions is now Seam Solder and soon GlassFish-friendly
Java champions on the value and portability of CDI
Weld 1.1 in GlassFish 3.1

With the upcoming release of GlassFish 3.1, the vast majority of Weld or CDI-related issues should be gone. Specifically these memory leak related issues which impacted CDI early adopters in 3.0: 14419, 13928 and 12368 are now all fixed (check this complete list of CDI-related issues), including the portability issue with CDI extensions (Seam 3 on GlassFish) which was fixed in build 37. Siva has already integrated Weld 1.1 into GlassFish, so look for it in the 3.1 RC1 build!

Friday Jan 14, 2011

Weld Extensions is now Seam Solder and soon GlassFish-friendly

Seam Solder logo

Seam Solder is the new name for Weld Extensions and is a set of portable extensions for CDI and Java EE 6. Following the release of JBoss 6, several people asked about the status of Weld and Seam.

Weld is the CDI reference implementation and Seam is a JBoss-sponsored community effort to build modular extensions for Java EE 6. Seam targets standard Java EE runtimes and other environments where CDI is integrated. There's recently been a focus on compatibility, specifically to get Seam 3 running smoothly on GlassFish 3.1. You can read more on Seam 3 in this post by Dan Allen.

On a related note the upcoming GlassFish 3.1 will integrate Weld 1.1 Final as previously mentioned. This should remove the vast majority of CDI problems found in 3.0.1.