Eclipse Con 2011 Hands-on Lab delivered: OSGi, JavaEE, GlassFish, Eclipse a powerful foursome

Sahoo and I delivered OSGi-enabled Java EE Applications using GlassFish and Eclipse Hands-on Lab at Eclipse Con 2011 earlier this week. The conference had an excellent line up of sessions, speakers, receptions and I wanted to engage but could attend only one day. The keynote on the third day titled "The Java Renaissance" was jointly delivered by Mark Reinhold, Chief Architect of the Java Platform group at Oracle and John Duimovich, Java CTO at IBM. Read more coverage of the keynote and Oracle's participation here.

The hands-on built a simple User Registration and Authorization application and showed different combinations of OSGi and Java EE development and deployment in GlassFish. The first step was to to deploy a simple OSGi service and client in GlassFish. Then the OSGi client was replaced by a Web Application Bundle (aka hybrid application) which used @OSGiService for dynamic discovery, bind, inject, and track the OSGi service (more details in TOTD #154). Then the service bundle was replaced by a JavaEE application using EJB and JPA. There were detailed instructions (PDF) to go through all the exercises. The screencast #38 (video) walks you through building the entire application, the video inlined here too:

About 35 attendees were able to make progress after the spotty Internet connection started working. The 5 USB sticks provided by Eclipse Con turned out pretty handy to pre-load all the software requisites. We shared a zip of our ".m2" directories and "m2eclipse-\*" plugins directory for the folks with no Internet. The high point for me was when one of the attendees finished the entire lab in a little over an hour and left. That also helped us assess the quality of document which we tried to make pretty self explanatory. We found one missing instruction from the document and have already fixed it. Overall, about 60% of the attendees completed the lab and rest of them left with partial setup and instructions. Let us know if you attended the lab and found it useful.

Many thanks to Doug and Ankush, the Student Assistants assigned by EclipseCon for our labs, to help attendees keep chugging along!

I was also "lucky" to win a BlackBerry 9670 smartphone + remote stereo bluetooth gateway + international charger + headset. The RIM folks told me that this worth $700 but Amzon sells the raw phone for $19.99. The total cost comes out way under $100 even after including all the accessories. Anyway this device runs only on Sprint so of no use to me. Are you interested in purchasing ? :-)

The reception in the evening (typically the best part) was great and gave me a chance to socialize with several folks. Here are some pictures captured from the event:

Technorati: conf eclipsecon osgi javaee glassfish eclipse


Where can I download the hands-on for:
"Developing OSGi-enabled Java EE Applications"
from eclipse con 2011 on March 21.

Posted by haglo on March 16, 2012 at 03:38 AM PDT #

Complete hands-on lab instructions are linked from the blog and are available at:

Posted by Arun Gupta on March 22, 2012 at 10:19 PM PDT #

hi arun,

i cant follow your screencast due to the unavailibility of ur source code at

plz update the link or provide an alternate one.


Posted by guest on April 04, 2012 at 11:44 PM PDT #

The code is available at:

Posted by Arun Gupta on April 05, 2012 at 05:42 PM PDT #

Dear Arun,

Good Hands-on Lab!

There are few points needed to be updated!

(1) When I used Maven 3.0.4, In osgi-gf-econ-2011\common\pom.xml、osgi-gf-econ-2011\simple_client\pom.xml and osgi-gf-econ-2011\simple_service\pom.xml, the following contents need to be added.


Otherwise, when executing mvn clean install, there will be some errors.

(2) from the osgi-gf-econ-2011-docs.pdf, the url of complete sample code(including web client and ejb bundle service) should be:

--Best Regard!

Posted by Tang Yong on June 26, 2012 at 06:05 AM PDT #

Found it here "" Please update the link.

Posted by guest on June 06, 2013 at 08:53 AM PDT #

All your links to the zip file are wrong. I found it here:

The one you have that looks like this is taking me to

Posted by guest on June 06, 2013 at 09:06 AM PDT #

LInks updated, thanks!

Posted by Arun Gupta on June 16, 2013 at 03:10 AM PDT #

Hi Arun, Great stuff; thx for making the time to correct the links...way cool

Posted by paul on July 04, 2013 at 02:58 PM PDT #

Post a Comment:
Comments are closed for this entry.

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.

Java EE 7 Samples

Stay Connected


« April 2014