RedFX provides a JavaFX widget library that connects front-end JavaFX widgets with services running on GlassFish, without writing any boiler plate code.
Why they picked GlassFish ?
Its the Reference Implementation of Java EE 6 and contains all the latest specifications implemented.
First-class open source application server
Quality is very very good
Scalability is enormous
Code is very easy to understand
Hear Johan Vos share all the juicy details in this video captured at the recently concluded JavaOne:
A requirement for one of their application was to be "scalable as hell" and GlassFish very well handled few hundred thousand users/hour with about 40 requests/user. Read more about the library here.
OSGi provides the benefit of modularity, dependency management, service dynamism, and others. Java EE provides persistence, security, transaction management and other similar services. The Enterprise Expert Group in OSGi Alliance defines how to mix and match the Java EE APIs in OSGi. The Release 4 Version 4.2 of Enterprise Specification defines how several Java EE specifications such as JPA, JNDI, JMX, and WAR file specification can work with OSGi and levarage its benefits.
Sahoo & Siva gave a talk at JavaOne 2010 explaining the approach and advantages of writing such applications, their slides are available below:
This 6-part screencast shows how to develop OSGi-enabled Java EE applications using NetBeans and deploy them on GlassFish. The screencast creates a simple OSGi service which is invoked by OSGi client. The same OSGi service is then invoked by Web Application Bundle (WAB) client that is a Web Application + OSGi bundle, a.k.a hybrid application. The OSGi service is then replaced by an EJB-based service using Java Persistence API. This shows how OSGi client and service can seamlessly interoperate with Java EE counterparts.
Specifically, the different parts show:
1. How to create a parent POM project 2. API and Service OSGi Bundle 3. Client OSGi Bundle invoking an OSGi Service 4. Web Application Bundle (WAB) client invoking an OSGi service 5. Client OSGi bundle invoking EJB service 6. Conclusion and other possible extensions
This entire exercise was scheduled as S313522 hands-on lab at JavaOne 2010 but could not be conducted because of technical difficulties. We hope you are able to follow the steps mentioned below and benefit from it.
Please download and install NetBeans 6.9.1 and download the following zip files before attempting the exercise:
If you are using a different build of GlassFish then the OSGi Feature Pack can be downloaded by executing the following script in "glassfish/modules/autostart" directory and giving the build number as the first parameter:
A typical execution of this script might look like:
./gf-osgi-fp.sh 20
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27522 100 27522 0 0 74967 0 --:--:-- --:--:-- --:--:-- 120k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6795 100 6795 0 0 17811 0 --:--:-- --:--:-- --:--:-- 24068
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 24342 100 24342 0 0 59168 0 --:--:-- --:--:-- --:--:-- 108k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16145 100 16145 0 0 72180 0 --:--:-- --:--:-- --:--:-- 186k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 18724 100 18724 0 0 35921 0 --:--:-- --:--:-- --:--:-- 48785
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 602k 100 602k 0 0 636k 0 --:--:-- --:--:-- --:--:-- 748k
Enjoy the video!
How are you using OSGi and Java EE together ? What other OSGi features would you like to see in GlassFish ?
Do you think swimming is possible if you have a missing arm ? How about 2 arms ? How about both the legs ? How about no arms and no legs ?
I had one of the most humbling experience in my life earlier this morning when I volunteered for a Disability Swim Meet at Santa Clara Swim Club. The swimmers were at different levels of disability but the spirit and courage in them was truly outstanding, to say the least. Some of the swimmers had a tough time getting in and out of the pool but they were completely independent and highly efficient in the pool. I just couldn’t stop myself from cheering for the swimmers in their last lap. The amazing part was all the swimmers completed their designated distance and there were no disqualifications. I truly enjoyed and was deeply touched watching them having fun and compete with full force. This experience also reminds me of Team Hoyt!
Check out the complete results here. There were eight American Records and 2 World Records broken at the meet. There were 10 Beijing 2008 Team swimmers and 12 2010 World Championship Team members at the meet. So it was truly a pretty competitive league!
Many thanks to Santa Clara Swim Center for hosting the meet when other swim centers declined to host it, this is a very commendable act. The meet director Marie and Swim Center officials Barbara, Maggy, Mary, and many others were running the show marvelously. Personally speaking, my son has been going to this swim center for about 3 years now and I totally love their coaching style. They provide complete swimming lessons for newbie beginners to all the way highly competitive and master swimmers. Mark Spitz, the swimming sensation at 1972 Munich Olympics sensation who won 7 gold medals there is an alumnus of this club. This school has also produced significant number of Olympic Synchronized Swimmers since the sport was introduced in 1952. The swimmers from the club have earned 71 Olympic medals: 42 Gold, 18 Silver, and 11 Bronze medals during its proud history.
So yes, the swimmers at Disability Meet totally proved that it can be done. A total salute to the swimmers for teaching me a humbling lesson today and many thanks, once again, to the Santa Clara Swim Center for hosting their meet.
As announced earlier the joys of JavaOne, the adrenaline rush, the energy, the passion, and everything else around it can now be felt outside the United States for the very first time. JavaOne is going to Brazil and China later this year and to Russia and India next year.
There are going to be DEMOground booths, conference sessions, hands-on lab sessions, and the usual networking.
Mark your dates … Dec 7-9 in Sao Paulo, Brazil.
Call for Papers for JavaOne Brazil is now open, so submit your presentation now as the CFP closes on October 8th.
Tighten your seatbelts folks … this is going to be an exciting ride!