Wednesday Jun 27, 2007

GlassFish Videos!


At least four GlassFish-related Hands-On-Labs from JavaOne 2007 have been made available online recently as screencasts -

•  LAB-5410 : Securing Identity Web Services

•  LAB-3315 : Java EE 5 Hands-on and Clustering using Open Source GlassFish Application Server

•  LAB-4450 : Rapidly Building a Real Life Application With Ajax and JavaServer Faces Components using the NetBeans Visual Web Pack

•  LAB-4440 : Building Web2.0 application using Sun Web Developer Pack (SWDP)

Hands-On Labs (HOL) are fully documented from setup to step-by-step didactic tutorials. Each is split into several exercises for a total of 60 or 90 minutes. The complete list (all 27 of them) is here. Specifically, I'd recommend "LAB-3360: Taste Special Features of GlassFish". Access is free to all SDN members. SDN membership is free as well.

Friday Jun 15, 2007

ICEfaces on GlassFish v2

ICEfaces logo

Bit by bit, the GlassFish adoption is translating into more support from products, projects and companies. Ted (Mr. ICEfaces, one of the early AJAX companies) has a brief blog showing how to use ICEfaces on GlassFish v2 using JSF 1.2.

The current instructions require an SVN checkout, but he promises that this will become ICEfaces 1.6. Check it out!

Tuesday Jun 12, 2007

jMaki Gears Up with Extensions

Google Gears Logo

Project jMaki has just completed a successful .9.3 release (as summarized in Carla's blog). One of the headline items in the release is support for a new "jMaki Extensions" mechanism. Greg has posted a detailed writeup of Extensions, where he describes them as "behavior / functionality that are shared across widgets."

Examples of Extensions, Greg says, could include enhanced debugging support, sound, or application-specific controllers. But for his own sample, he's looking to even fresher ground: Google Gears (which enables off-line webapps by providing a browser add-on with APIs for things like local storage). Seeing how easily Greg creates a jMaki Extension for Google Gears might just inspire you to create some Extensions of your own.

Friday Jun 08, 2007

Prioritizing Ajax Request in GlassFish

Image of a U.S. Traffic Yield Sign

If your site returns full web pages in a second or two, you probably have a bunch of happy users. But if your Ajax-intensive application takes a second or two for each small update to a page, your users may be calling for your head.

No problem, you say, because your app handles its Ajax requests very quickly. But what happens when one of your Ajax requests get stuck behind slower non-Ajax requests in your webserver's queue? Lag. (And unruly users, in our example.)

Fortunately, GlassFish provides a solution (with the help of its default network engine--Grizzly). Jean-Francois shows how you can use Grizzly's Resource Consumption Management extension to keep Ajax requests humming along with their own request queue and dedicated handler threads.

Of course, Ajax requests are just one example of traffic which you might want to prioritize with this technique. For more information on this and other advanced functionality in GlassFish, see the " Taste Special Features of Glassfish" lab from this year's JavaOne conference.

Thursday Apr 26, 2007

jMaki at JavaOne


jMaki will be all over JavaOne this year. Greg and I will give a detailed overview of jMaki in our session, TS-6375, and there are several hands on labs that are using the framework too. And check out the free event, CommunityOne day where you can learn about jMaki in both the GlassFish and Web 2.0 tracks. See my blog for more information.

Greg highlights other sessions and events where you can learn about jMaki, JavaScript best practices and performance issues around Ajax and Web 2.0 apps.

Thursday Feb 22, 2007

Live Web 2.0 Samples

Sample Web 2.0 Applications @ SDN

The pet store may be the most famous of Sun's sample web applications, but it's certainly not the only one. Sun's Web 2.0 team has put together a collection of live samples covering a slew of web technologies--AJAX, Dojo, RSS, JSP, JSF, Woodstock, jMaki, and more. And, of course, they all run on the GlassFish Application Server.

Try each sample out directly on the web site. Then follow the "learn more" links to get additional information on how each was made and how you can use similar techniques in your own work. As the team says, "We hope you're inspired by these apps, components, and widgets."

Thursday Feb 15, 2007

Woodstock - OpenSource Enteprise-Quality JSF Components

Poster for Original Woodstock

Woodstock is an Open Source library of JSF components that provide modern presentations, including the use of AJAX. Woodstock is used in the new admin UI in GlassFish v2 M4 and it includes a pretty good set of components, as versions of it have been used inside Sun for a while.

The Woodstock project includes Documentation, Downloads and a Roadmap (the current release is 4.0). Live previews are available from the The Samples Page in the Web Developers Resource Center, or directly from the Project Preview Page. For example, here is the Tree Sample.

The Samples Page includes many other samples in addition to Woodstock, including Blueprints, jMaki, DynaFaces and Phobos. Check them out!

jMaki plugin for Eclipse now available

Eclipse logo

Ludo spent the last couple of weeks working on the much asked for Eclipse plugin for jMaki. The plugin is now available and also supports the latest release (v.8.3.1) of jMaki. Ludo also provided some documentation on how to get started using the new Eclipse plugin. Enjoy.

Sunday Jan 28, 2007

DaliCMS - Another GlassFish deployment story


The Stories blog is steadily adding new deployment experiences. The latest one is from DaliCMS, a CMS system what uses AJAX and includes a WYSIWYG editor, version and publication management, permission management and separation of look and feel and content.

While clearly building on Java EE 5, this application also builds on a variety of technologies such as Google's Web Toolkit, the Lucene Search Engine, RSS feeds, MySQL, and Adobe's Flex. Read more on DaliCMS here.

Tuesday Jan 09, 2007

jMaki examples

jMaki home

If learning how to write Ajax enabled web apps is one of your New Year's resolutions then check out the following blogs.

My blog, Building web 2.0 apps with jMaki uses one of the layout templates, glue code to tie widgets together and the injector code to load pages within a div tag to create a web application. The glue code ties the Yahoo Geocoder and Google Maps widgets. The injector is used to load the page containing those widgets in the div tag genereated by layout template and navigation is done using the Dojo fisheye widget.

Jennifer published two blogs at roughly the same time. Fun with jMaki: Using the Yahoo Geocoder service with the Dojo Combobox also uses the Yahoo Geocoder but she used the Yahoo Map and a combobox to select the city to map. More Fun with jMaki: Getting Data From a Bean shows how to get data from a bean using an EL experssion to a widget (in this case ComboBox). The data is converted to JSON format using the org.json libary.

Finally, checkout the new project jmaki-charting. This friend of jMaki project provides a charting widget which can be added to the jMaki framework. It's open source, freely available and it supports Java, PHP and Phobos.

Thursday Dec 28, 2006

jMaki beta 2 release available

jMaki seal

jMaki beta 2 release is now available for download. Highlights of this release include a new widget model, improvements to the dynamic container which loads pages on demand and of course, bug fixes. Check out my blog for more details.

jMaki is a framework that provides a lightweight model for building Ajax enabled web applications using standards-based technologies. It allows you to use widgets from popular toolkits and includes support for PHP, JSP, JSF and Phobos.

Friday Dec 08, 2006

jMaki Beta 1.0 is out


jMaki Beta 1.0 release is available for download. jMaki is a framework that provides a lightweight model for creating Ajax-enabled web applications. It provides an extendable and customizable insulation between your application code and many of the JavaScript toolkits (Dojo, Yahoo, Google, Mochikit and others) out there today.

See Greg's blog for details about the beta. Some highlights are

  • jMaki Styles - CSS layouts and templates that act as frameworks for your web pages
  • jMaki Widget Model - A simple widget model based on HTML templates, CSS, and JavaScript. This can be used to wrap widgets from other toolkits or create your own re-usable widgets.
  • jMaki Glue - Listens for publish/subscribe events and calls shred JavaScript handlers based on the event.
  • NetBeans plugin - Drag and drop pre-configured jMaki widgets into a page, and configure the widgets using property editors.

Wednesday Nov 29, 2006

jMaki supports PHP 5


The latest jMaki release now supports PHP 5! See Greg's blog for details on how to use jMaki to add reuseable Ajax enabled widgets to your PHP application.

The jMaki beta is scheduled for next week. See my blog describing some of the other features available in the release candidate.

Monday Nov 13, 2006

New jMaki release supports Mochikit, Dojo and NetBeans plugin


jMaki is a framework that provides a lightweight model for reusable Ajax-enabled widgets. The lastest (.5.1) release of jMaki includes:

  • Most significant in this release are the jMaki Layouts which are available in the Netbeans Plugin with templates.
  • Improvements to the widget.json configuration files to provide better property editing support in Netbeans.
  • Mochikit 1.3.4 support
  • Dojo is now updated to the shipping .4
  • Yahoo YUI Widgets has been updated to .11.4
  • Value Change Listner Support was add to the JSF component view of jMaki
  • Many updates to the current widget set

At the same time, the jMaki NetBeans plugin was updated to include a new stylized JSP wizard. See a previous Aquarium entry for more info.

Wednesday Nov 08, 2006

New Stylized JSP wizards for NetBeans jMaki Users

Via TheGalaxy, Ludo and Greg have been working hard to provide new Ajax jMaki plugins. Ludo has just reported that a new set of JSP wizards is now available to create JSP files following well defined CSS styles. See more details at Ludo's blog.