Tuesday Jul 29, 2008

Embedded EJBs!


One of the uses of an API for an embeddable container is testing, and experience shows this can have a huge impact on the development speed, so I'm very pleased to report progress on this from the JSR 318 EG, led by Ken. The proposed API provides for creation / releasing of the container as in:

EJBContainer ejbC = EJBContainer.createEJBContainer();

Ken's Intro Note also hints at more details from further blogs (a portable global JNDI name, for example), so stay tuned.

More evidence that the EJB 3.1 Expert Group is keeping a very customer-focused perspective on the evolution of the spec. Hats off to them! Also see EJB3 for more EJB 3-related entries.

Thursday Jul 03, 2008

Learning EJB3 - For Beginners and Advanced Users


Here are wwo ways to get into EJB 3.x. For the complete beginner, Adam has a EJB 3.0 in 5 minutes. And for the advanced user, PACKT Books just published Michael Sikora's EJB 3 Developer Guide home page, TOC, Amazon). Both use the GlassFish Server

For a while I thought that EJBs were always going to be - or be perceived as - "too (conceptual) heavy"; maybe EJB 3.1 and EJB3.1 lite will actually change this. More EJB notes at EJB posts at TA

Tuesday Jun 17, 2008

EJB 3 series by Adam Bien

Adam Bien photo

Java Champion, Adam Bien has been running the following series of blogs around EJB 3 in the past few days -
Why I like EJB 3.0 and really like EJB 3.1, ...
Heavy EJBs, lightweight POJOs, ....
What happens, if you start with EJB3.x ...

Adam makes several points around the "lightweightness" of EJB's both at development time and runtime, contrasts the EJB3 approach with similar yet different technologies like Spring or Guice, and takes the upcoming EJB 3.1 improvements into account concluding that EJB's should be considered as no more than "midweight". Overall this three-part set of posts is a very nice read with fact-based opinions.

Adam Bien is an independent consultant and a member of the several JCP Expert Groups (EJB 3.1, Java EE 6, ...) and will be presenting on GlassFish v2 and v3 at Jazoon next week in Zurich, Switzerland.

Monday May 12, 2008

More EJB 3.1 - Now a Web App Example


Cheng has a simple example showing how to use EJB 3.1 EA in a WebApp. This builds on the EJB 3.1 implementation Available at the Update Center for GFv3.

Cheng's Note has all the details, including the sources for all 4 Java files. With the fast startup of GFv3, it just takes a few minutes to go through the example. As always, please send feedback on both implementation and specification.

Tuesday May 06, 2008

Taking EJB 3.1 for a Test Drive - Install it on GlassFish v3


The release of the EJB 3.1 EDR Spec early last month generated good feedback but there is nothing like an implementation to help understand the spec so...

Mahesh and the implementation team have just pushed out an EA of EJB3.1 that installs as a container in the newly available GFv3 TP2. Check out the Features Available and How to Install it. Also see Ken's intro to the plugin.

Check it out and please give us feedback. Enjoy!

Saturday Mar 15, 2008

EJB 3.1.lite - Can It Change the Old Perceptions?

The Early Draft Review (EDR) version of EJB 3.1 was released a couple of weeks ago (Spec, TA note) and now Ken, the spec lead, has started blogging:


• Ken's Introduction to the EJB 3.1 EDR
Simplified EJB Component Packaging
Optional Local Business Interfaces
• EJB 3.1 Presentation at JavaPolis (with video and slides)

I'm very happy to see Ken writing a blog. EJB 3.0 was a big improvement and EJB 3.1.lite (see Java EE 6 Profiles) will help further but adoption also requires presenting the technology in a palatable format to its intended audience.

BTW, did you know the simplified EJB 3.0 spec is only 59 pages? But I can only find it at the JCP Site (although see Ken's Quizz!). Does a Spec exist if people don't know about it? :-)

Saturday Mar 08, 2008

Patterns for Java EE 5 Project at Java.Net


Adam has been making progress on his Patterns for JavaEE 5 project where he will open source all the projects in his Java EE 5 Architekturen book (in german, sorry!).

Adam is also using the P4J5 project for additional examples/samples. For example, his recent experiment measuring the (Lack of) Performance Penalty Using EJB3 uses EJB3LoadTest and PojoLoadTest. Also see Adam's State of the P4J5 Project writeup.

Friday Feb 29, 2008

Early Draft for EJB 3.1 Now Available

JCP Logo

Ken and the rest of the EJB 3.1 Expert group (JSR 318) has made available an Early Draft for review. The documentation includes the API files and the Specification. We don't yet have a companion early access implementation.

As mentioned in Roberto's note on profiles the EG is considering the notion of EJB 3.1 lite, which I think would be very useful.

Check the specs and give feedback to the EG through the comments alias. I'm also encouraging Ken to start a blog and join the Blogosphere.

Friday Nov 09, 2007

Using GlassFish to develop Geronimo

Jacek Laskowski photo

GlassFish can serve different purposes beyond being a complete enterprise open source application server. Based on the fact that it is also the Java EE 5 reference implementation, Geronimo and OpenEJB commiter and long-time NetBeans user, Jacek Laskowski has a nice article putting GlassFish's EJB container to work.

The article explains how to add Maven support to NetBeans 6 and to use it to handle project dependencies, keeping your pom.xml always up to date. Jacek refers twice to the well written EJB FAQ for Java EE 5 clarifications or GlassFish specifics. Jacek has more GlassFish-related articles here (in Polish).

Sunday Sep 02, 2007

HowTo - EJB3 local bean access in servlet using glassfish

I'm going to try a new series at TA - short references to useful tips and howtos elsewhere. My plan is to replace this with a social network-based solution based on Slynkr when that is available, so this is a bit of a prototype / try out the idea. This series will also be useful for the FAQ we are building.

Informational Sign

From Suchak Jani
How to Access an EJB 3 Local Bean from Servlet in GlassFish

Thursday Aug 30, 2007

Apply Web Services Security to EJB Applications

Stock quote sample application

Back in May, at JavaOne 2007, Aravindan Ranganathan and Malla Simhachalam presented a hands-on lab titled Securing Identity Web Services. The lab showed how to provide different levels of stock quote service according to the identity of an end-user - authenticated users see real-time stock data while 'guests' see delayed quotes.

Since then, Malla, Mrudul Uchil and Marina Sum have written up the lab tutorial as a three-part series of articles at the Sun Developer Network showing how identity can be carried from an incoming web services request right through to an EJB. The sample application shows the request and response messages graphically, and provides links to the XML message data - a particularly nice feature that shows exactly what is going on.

Tuesday Jul 31, 2007

JPA 2.0 and EJB 3.1 JSR Approved

JCP logo

The JCP SE/EE Executive Commitee has approved two new JSRs for development: JPA 2.0 (JSR page, Vote results) and EJB 3.1 (JSR page, Vote Results).

Both Reference Implementations will developed in the GlassFish Community as Open Source.

Saturday Jan 27, 2007

Using EJB3 - Lessons from Wotif

Wotif Logo

Robert reports that Wotif has just switched to GlassFish (more on that soon), and this means that Robert will start writing about their experiences with the new Java EE 5 specs. His first blog describes their approach on Interfaces with EJB3; check it out!

Wotif provides cheap last-minute hotel reservations in over 35 countries and it is specially popular in Australia, New Zeland and nearby locales (see this article).

Friday Oct 20, 2006

Invoking EJBs in GlassFish from Tomcat

AMIS logo

Wouter at AMIS Technology has a new blog entry explaining how to call from EJBs running on GlassFish from Tomcat using a recent GlassFish V2 build. The blog is fairly detailed and uses screenshots from NetBeans but it should work with any of the other IDEs that Support GlassFish and Tomcat (like MyEclipse and IDEA).

I suspect a number of folks will be interested, so Check It Out!.

Tuesday Jun 06, 2006

JSR 299 Review Ballot - the JCP Approves the WebBeans JSR

JCP logo

The Executive Comitee for Java EE/SE has approved the WebBeans JSR (submission request, ballot). WebBeans was submitted by JBoss with the endorsement of Borland, Google, JBoss, Oracle, Sun and Sybase.

The submission specifically lists EJB 3.0, JSF 1.2, JBoss Seam, Struts Shale and Oracle ADF as contributed technologies, and lists the tentative final release as April 2008.

JBoss active engagement in the JCP is very good for the Java Community. I believe this can be a very useful JSR, and I look forward to its progress. Like with JBoss Seam, we hope to track its development closely in Project GlassFish.