By arungupta on Jan 07, 2011
Recent Tips and News on Java EE 6 & GlassFish:
• Jabberwocky – a Jabber Component (XEP 0114) Container for GlassFish (Chuk Munn Lee)
Apache Roller, the software that powers this blog (and all of blogs.sun.com - 5k+ blogs, 145k entries, hundreds of thousands of hits every day) will soon ship version 5. Dave Johnson, one of the creators of Roller and once a Sun employee, has started sharing on his blog the experience of running this non-trivial application on a variety of application servers, ranging from GlassFish to WebSphere to JBoss but also to Tomcat, all in recent or even beta releases.
Roller was not rewritten to Java EE 6. I don't believe it uses CDI, BeanValidation, EJB's, JAX-RS for instance and it certainly doesn't use JSF but this remains a valuable exercise and probably a good read for anyone writing server-side Java code. Dave promises specific entries for the various servers and has found that JPA, class-loaders, and packaging were the sticking points in his portability experience.
Similar to the Roller experience, most new GlassFish customers don't start from scratch and require instead to have their "legacy" applications run on GlassFish (which in most cases it does with minimal modifications, if any). Only then do they start looking into adopting some of the more recent technologies. The lucky ones that can start from scratch run with Java EE 6 from day one.
Update: Dave has now posted the Roller on GlassFish entry with a link to a very nice install guide. Check it out!
Install and Run Apache Roller 4.01 on GlassFish and OpenSolaris
Dave Koelmeyer has posted Detailed Instructions on how to install Apache Roller 4.01 on GlassFish v2.1 using MySQL 5.1 for storage. He uses OpenSolaris snv_134, the subject of a tea-leaf-reading thread.
Slides and Code Samples on Jersey and JAX-RS
The Slides and code from Paul Sandoz's presentation at Presentation at AlpesJug on Jersey, JAX-RS and Atmosphere are now now available. The actual presentation was in French, but the slides are in English, and the code is... code.
Invoke OSGi Service from JAX-WS Endpoint
Arun has published yet another TOTD (Tip Of The Day), with complete instructions and code. This one is TOTD #130: Invoking a OSGi service from a JAX-WS Endpoint. Arun's approach is to document the demos he gives at his presentations through the TOTDs. Quite a bit of work, but it makes the content useful to a world-wide audience.
WAS V7 - Inching Towards JavaEE 6
IBM has recently been using a "Feature Pack" approach in upgrading its WebSphere AppServer; it seems to work pretty well for them and they released two packs for WAS V7: Feature Pack for OSGi and JPA 2.0 and Feature Pack for SCA. IBM is, of course, one of the Java Licensees; WAS v7 is one of the JavaEE 5 Compatible App Servers, the feature pack aproach helps it move towards the JavaEE 6 list.
VirtualBox at Oracle
One of the challenges during Hands-On-Labs is setting up: the attendees usually bring their own laptops but each of them is different and requires slighlty different setup. Asking for prep work before attending is not always successful. A solution now being used in some DB HOLs at Oracle is to Use VirtualBox. Which is the same approach that both Arun and Alexis had advocated for a new series of GlassFish HOLs being planned.
Masoud has a detailed post - actually a book chapter - that you should read to Learn the GlassFish v3 Command Line Administration Interface (CLI)
This year's JavaOne is the first under Oracle and will coincide with Oracle OpenWorld. Some things will be different, but others are mostly the same - including how the content is being selected - see Sharat Chander's interview by Tori Wieldt for some answers; others will evolve as we get closer to the event.
Note I have split the resources and news links off from this GlassFish v3 Announcement into the first of one of a series of resources and links entries. The new arrangement is more manageable and also simplifies the creation of additional entries as more resources and news are posted on the release.
Our first release was during JavaOne 2006, we released GlassFish v1, the first Java EE 5 compliant App Server (family overview) and the second generation of GlassFish came out in September 2007 (family overview). While still based on JavaEE 5, GFv2 leveraged on Sun's (too) long history of App Servers to add the benefits of an enterprise product (quality, performance, scalability) to those of an open source community (agility, ease of use, supportive teams, pricing).
While the transition between GlassFish v1 and v2 was evolutionary, the transition from v2 to v3 is a major change that includes a whole new set of JCP specifications, JavaEE 6, and a new modular, OSGi-based, architecture that expands significantly the applicability of GlassFish.
Key links available now:
Below are lists of posts relevant to the launch and the release; they will be updated through the day to incorporate news as they happen. Updates will also be posted to @glassfish at Twitter. If you use Twitter we recommend you to use #glassfish to facilitate discovery. Some level of geotagging would help visualize the spread of the community.
A compilation of today's news of interest:
From Brazil, several GlassFish-related events during September, The Java Month: first we will have representation at JustJava and several of the 14-city tour, including a Visit by Kohsuke, and then, later in the month, by Arun including Sun TechDays in Sao Paolo. Contact Arun and Kohsuke if you want to leverage their visit.
And talking about Arun, a report on how to Run Typo on GlassFish/JRuby.
From Dave, news of him joining his two babies in a Social Roller; I know he has been iching to work on this for a while, looking forward to the results!
And, from the land of Online Stores, two new developements: news of a New Kindle and noises about an Android App Store. The Kindle seems a sure (continued) winner; I'm curious about how Android will fare - a lot of competition out there!
A compilation of today's (yesterday's!) news of interest:
From the OpenSSO team, there is now a free (just need an MySun Account) Self-Paced Downloadable Lab for learning how to use OpenSSO. The course is based on OpenSSO Express Build 5. This course uses OpenSSO Build 4.5, which provides identical functionality to OpenSSO Express Build 5 which supports Apache Tomcat, Sun WebServer and GlassFish v2. Check out SuperPat, Rajeev, or go direct to the source, David.
From Ron our security master, an entry showing how to Use JACC to Determine Caller Roles, with detailed code snippets.
Finally, not our usual topic but the Engadget piece on the Google Phone got me in Gadgets mode: NYT report on Dream, Treo Pro, BlackBerry Black, HTC Touch and Xperia X1, WiFi PAN vs Bluetooth and Lenovo IdeaPad u8. I don't know how people can track all these! but then, I am not their target audience... check out my Cell Phone :-)
Dick Davis (Number 9) is a GlassFish Server fan and also a user of Roller (on GFv2 and on GFv3). He is now adding caching on a 2-node GlassFish cluster and his latest note shows how to set Memcached on Solaris to accomplish this.
Added - Also check out Dick's latest Roller Summary.
Memcached is the popular distributed cache system (often used with MySQL) that was developed for LiveJournal (Article, Wikipedia, Website). One of many sites using memcached is BSC and Dave has two recent writeups on the topic: The Roller Caching API, and Using Memcached with Roller.
And, on this topic, there has been good progress in the Webstack optimizing memcached for Solaris. Check Trond's articles on Configuration, the Latest Release and more. Also don't miss Patrick's Latest release of the Memcached Functions for MySQL.
Dave Johnson had already reported previously that Roller was available from the GlassFish Update Center. This time there seems to be even more to it than just a blogging engine - see Dave's latest entry for some details about "Social Software for GlassFish".
• Metro -
Metro on Sun WebServer,
Congratulations to Dave Johnson and the rest of the Apache Roller team for releasing this major version.of the blogging engine used by 4292 Sun Public bloggers (86691 entries and 87365 comments). BSC (blogs.sun.com) has been running Roller 4.0-dev since July and as heavy users we give it the thumbs up (as we do to the team running the infrastructure).
Roller now lets you handle themes much easier (get some here), supports plugins, has a much improved install process (including using the GlassFish Update Center), and implementation-wise uses Java 5, Struts 2 and JPA.
Who said Social Software was seldom written in Java?