Friday Oct 23, 2009

WADL at W3C

ALT DESCR

WADL, the Web Services Description Language, (home@java.net, WADL@TA) is now a W3C Member Submission. WADL is a clean way to describe RESTful Web Services and is supported by Jersey (and thus by GlassFish v3) and other tools like Zembly (announcement, wiki).

Congratulations, Marc!

Wednesday Aug 19, 2009

Updated GlassFish v3 REST interface

Browser-based REST management of GlassFish

This is yet another update on the work going on in GlassFish v3 to provide a REST interface for management and monitoring. This time, Rajeshwar announces the availability of HTML rendering. This makes for a nice and simple interface for navigating through the rich set of monitoring data as well as for reading and modifying the GlassFish configuration, including deploying applications. Previous entries introduce the feature and cover the role played by Jersey.

If you want to try it for yourself, make sure you use a recent GlassFish v3 build (see Rajeshwar's entry or wait for promoted build 60) enable monitoring (set the appropriate sub-system level to LOW or HIGH). Also of interest is Ludo's recent and short presentation from Jazoon which introduces the REST interface feature and shows how to use a JavaFX client to use it (includes a demo too).

For the Mac OS users out there, this does not work in Safari because Safari prefers XML over HTML. So use Firefox instead. Of course you still have the option of using either cURL or wget which I'd argue makes GlassFish quite cloud-friendly (no ssh required).

Friday Aug 07, 2009

Using REST Interface to Configure GFv3

ALT DESCR

Rajeshwar has written a short description on how to use the GlassFish v3 REST Interface to Configure GlassFish; this complements his previous entry REST and Monitoring and, like that one, it also has examples using a Jersey-based client - included in the post.

Related entries are tagged REST+GlassFish+v3.

PS. Picture at left shows the anterior eyes of a Jumping Spider.

Friday Jul 17, 2009

Monitoring GlassFish v3 using its REST Interface

ALT DESCR

GlassFish v3 has a REST/HTTP interface that is implemented using Jersey. The interface is used by the GUI admin console but can also be used by other clients; for example, the data can be exported as JSON, XML or HTML and the REST + JSON combination makes JavaScript clients very easy to write.

Check out Rajeshwar's recent writeup to learn how to Use the REST interface Monitoring.

Wednesday Jul 15, 2009

Jersey 1.1.1 EA - Now Available (getting closer to GFv3!)

ALT DESCR

Paul has announced the availability of Jersey 1.1.1 EA, based on the draft for JAX-RS 1.1 (see JAX-RS 1.0 spec and Changelog). To learn more about Jersey you can see the Getting Started Document and the Jersey User's Guide, check out Paul and Marc's Webinar, or browse through previous entries.

Jersey is also collaborating with JFA's Atmosphere framework, and, since Paul is a fan of Scala, also supports Lift. Overall, very good movement towards GFv3. More details at Paul's announcement.

Saturday May 23, 2009

atmosphere-core now building on top of Jersey

ALT DESCR

Since we announced the Atmosphere project (and it's Comet Portable Runtime), Jean-Francois has been making steady progress. In his latest blog post he discusses how the new atmosphere-core now builds on top of Jersey.

Jean-Francois details the combined use of JAX-RS and Atmosphere annotations and offers complete source code to his chat demo. If you're in a hurry, here's a small code snippet :

@Suspend // the returned String will be written and then response suspended
@GET
@Produces("text/html")
public String cometGet() { ... }

It's always nice to see collaboration between different open source projects (Grizzly has long been a recommended way to deploy Jersey resources), even if these two projects happen to be under the GlassFish umbrella. Both Jean-Francois and Paul Sandoz (Jersey lead) will be discussing future developments at the JavaOne Atmosphere BOF on Tuesday @ 8h30pm.

Friday Apr 17, 2009

Using Spring with Jersey

ALT DESCR

Paul has published a very detailed Enterprise Tip showing how to use Jersey, the JAX-RS implementation used in GlassFish, together with Spring, the framework for building and running enterprise Java applications. The integration relies on Integration Features that are currently available in the stable versions of Jersey.

Paul's note explains in full detail how to take a basic Web Application written with Jersey so it leverages Spring. Check it out!.

Sunday Apr 12, 2009

REST, Twitter, BlackBerries and More - Catching Up with Mobility Platform 1.1

The GlassFish Mobility Platform 1.1 was announced ([1], [2]) at the same time as the GlassFish Portolio, although it is not formally part of the Portfolio. That week I hosted a couple of Webinars; you can check the archive pages for the Short and Long webinars.

The core of the functionality in GF MP 1.1 remains the SyncML engine and the adaptors but this release adds support for JAX-RS-based connectors (via Jersey) and JerseyMe, a JAX-RS client library for CLDC. Other additions include BlackBerry support and a new SalesForce sample that uses the JAX-RS connectors.

The team has been aggregating news on these features using the new Mobility Blog; doing a quick pass to catch up...

ALT DESCR

• Rebecca explains how to use the new JAX-RS Connector in a SalesForce example: [1], [2] and [3].
• Two short screencasts by Santiago showing how to Develop and Deploy JAX-RS Connectors.
• Hans explains how to Provision BlackBerry clients.
• A couple of screencasts by Ryan: SalesForce Example and Case Management System.
• Rajiv Konkimalla shows how to Synchronize Twitter Data.
• Joe Wang explains how to Develop a Client Application using LWUIT and a BlackBerry.

Saturday Apr 04, 2009

EJB 3.1 and Jersey - A Great Partnership

ALT DESCR

One of the challenges in spec development is how to best leverage other specs that are being developed simultaneously, within the real-life constraints of schedules, resources, time-zones, etc. This is another situation where transparency and open-source is helping significantly - plus the usual hard work of the EGs.

A case in point is EJB 3.1 and JAX-RS 1.1 where the EGs have been working to allow the use of POJO sesion beans as resource (root) or provider classes in Jersey, deployed as a plain WAR. This allows very natural Java programming, things like this root class

@Stateless @Path("ssb") public class StatelessSessionRootResource { @Context private UriInfo ui; @GET public String get() { return "GET: " + ui.getRequestUri().toASCIIString(); } }

Check out full details in Paul's Glassfish v3, EJB 3.1 and Jersey and in Ken's JAX-RS and EJB.

EJB3.1 and JAX-RS are two of the new JavaEE6 features you will be able to try GFv3 in EA by JavaOne - see you there! And the photo? Another great partnership, this one in Mixed Doubles in Badminton: Kim Dong-moon and Ra Kyung-min :-)

Wednesday Mar 18, 2009

Hello Cloud! The Announcement and the Example

ALT DESCR

Today, at CommunityOne East, Sun unveiled more details of its Cloud initiative: A world of many clouds, both public and private, that are open and compatible.

The initiative enables the definition and deployment of Virtual Data Centers, leveraging q-Layer, xVM and VirtualBox and components like OpenSolaris, MySQL, GlassFish and Web Stack.

For more details, check Cloud@Sun, the Launch Event and this Overview. I also enjoyed reading/watching about the SuperNat center and TheRegister ran an Overview White Paper.

Also check the personal perspectives from Craig and Tim, who were directly involved in defining the RESTful API for manipulating the cloud. The APIS are under Creative Commons license (see Opening APIs) and are available at Kenai, see API home and Hello Cloud project.

Saturday Mar 14, 2009

Towards REST and SOAP in Java EE 6 - JAX-RS 1.1 and JAX-WS 2.2

ALT DESCR

Progress on both sets of Web Services specifications for JavaEE 6...

On the RESTful side, Marc reports on a new specification draft. As usual, the JSR311 Website has full details including the Editors Draft and a Changelog. Marc points out there is still work pending in the integration with Servlet 3.0, EJB 3.1 and JSR 299.

On the SOAP side, Rama announces a new implementation of the latest JAX-WS 2.2 Draft.

Saturday Feb 28, 2009

New Jersey Release - 1.0.2 Now Available

ALT DESCR

A quick update on Jersey (the REST implementation in GlassFish) to complement yesterday's note on Metro, the SOAP stack.

Jersey 1.0.2 was released on Feb 12th. The release is still based on JAX-RS 1.0, has many bug fixes and new functionality including improved JSON support, resource-specific filters, Apache Abdera support, implicit produces and servlet as a filter. Check Paul's writeup for more details, and the team is already working on Jersey 1.0.3 - see Roadmap.

On a related topic, check Jakub's article on Consuming RESTful Web Services With the Jersey Client API. Finally, JAX-RS is also being used in the GlassFish Mobility Platform; spotlight still to be posted.

Saturday Feb 14, 2009

Metro and Jersey - At Microsoft and O'Reilly

ALT DESCR

Metro, the Web Services stack, is one of the main components in GlassFish. One of its key benefits is excellent WebServices interoperability with the Microsoft stack, leveraging our relationship with MS. A consequence is showings in informal publications from Microsoft, like mszCool's Plans for 2009 and Identity Interoperability as well as in formal Federated Identity and Healthcare in the MS's The Architecture Journal.

On a related note, O'Reilly has published Java Web Services: Up and Running - A quick, practical, and thorough introduction where Martin Kalin covers SOAP and RESTful Web Services in Java using Metro and Jersey.

For WebServices discussions, check out our Forum, and the mailing lists USERS@Metro and USERS@Jersey. Although we consider Jersey a piece of Metro - we love SOAP and REST equally :-) and the two parts are intended to mesh together - we are maintaining two mailing lists as the audiences tend to be disjoint.

Tuesday Jan 20, 2009

OpenMQ Presentations and Screencast - Now Available

ALT DESCR

I've uploaded the multi-media recordings from the Jan 9th, 2009 presentation on OpenMQ 4.3 and the new Universal Messsaging System REST API. Video recordings are available as FLV, Quicktime, iPod/320x240 and Audio only, screencast as Quicktime/MP4, slides in PDF and SlideShare.

Feedback always welcome.

PS. despite the fact that 6 of the last 9 entries are about webinars, we do carry other news too! :-)

Tuesday Jan 13, 2009

Jan 15th Webinar - JAX-RS, Jersey and REST Applications

ALT DESCR

This week's webinar is on Thursday, Jan 15th, 11:00 am PT. Marc Handley and Paul Sandoz will describe JAX-RS, the Java API for RESTful Web Services, and Jersey, its enterprise-quality, reference implementation, as well as some examples. Arun Gupta and Craig McClanahan may also present.

Slides and other material will be posted to the Presentation Page - if you have any questions ahead of the presentation, please add them as comments there, or just ask them during the presentation via the chat.