InfoQ

News

Hessian Binary Web Service Protocol Adds Adobe Flash/Flex Support

Posted by Jon Rose on Sep 19, 2007 09:17 AM

Community
Java
Topics
Rich Internet Apps
Tags
Flex,
Adobe Integrated Runtime
Last week, Caucho Technology, Inc. announced Flash and Flex support to their Hessian framework with a 100% ActionScript implementation. Hessian is a binary web service protocol developed by Caucho. Their open source implementation is available under the Apache License. In the press release announcing Flash support, Caucho Technology's Emil Ong detailed the addition:
Flash developers creating RIAs need fast and easy communication to Web Services. Hessian fits this requirement perfectly. With Hessian's growing popularity as a Web Service protocol, we wanted to make these services available to developers targeting the Flash platform.

Ong described using the protocol in more detail:
Hessian isn't a protocol that you have to plan your whole application around; you can add it in at any stage and it's just plug and go. Flash developers now have that flexibility.
The Caucho Hessian RIA Demo demonstrates integration between a Java and Flex application in detail. The basics of integrating the two are very straightforward. On the Java side, the service class simply extends the HessianServlet from the API, and is mapped in web.xml with standard JEE syntax. Flex connects to the service in the MXML page using the HessianService class:
<hessian:HessianService xmlns:hessian="hessian.mxml.*" id="service" destination="words"/>

Hessian is a well rounded web service alternative that offers support for Java, C#, Ruby, PHP, and Python in addition to the new ActionScript support. It should offer RIA developers using Adobe Flash and Flex another good alternative for integrating with business services.

4 comments

Reply

wow! by Codelicious ^ Posted Sep 19, 2007 2:04 PM
Great news indeed, but... by Fernando Olcoz Posted Sep 21, 2007 2:29 AM
Re: Great news indeed, but... by Tamas J Posted Sep 24, 2007 10:25 AM
Re: Great news indeed, but... by berkay NiQuiL Posted Jun 30, 2008 3:27 PM
  1. Back to top

    wow!

    Sep 19, 2007 2:04 PM by Codelicious ^

    this effectively renders FDS/LCDS useless if only doing basic RemoteObject stuff... sounds very exciting!!!

  2. Back to top

    Great news indeed, but...

    Sep 21, 2007 2:29 AM by Fernando Olcoz

    This could be great for all those applications where web services are being used but RPC is a better solution and FDS is not a practical or cost effective proposition. Sadly, it ain't working for me in Flex 2.0.1, as the compiler refuses to override final method getOperation() in hessian.client.HessianService (which is quite understandable).

  3. Back to top

    Re: Great news indeed, but...

    Sep 24, 2007 10:25 AM by Tamas J

    Since I installed SDK hotfix 1-3, getOperation is not final (which is more understandable :)

  4. Back to top

    Re: Great news indeed, but...

    Jun 30, 2008 3:27 PM by berkay NiQuiL

Exclusive Content

Rationalizing the Presentation Tier

Thin client paradigm characterized by web applications is a kludge that needs to be repudiated. Old compromises are no longer needed and it's time to move the presentation tier to where it belongs.

Agile Project Management: Lessons Learned at Google

In this presentation filmed during QCon 2007, Jeff Sutherland, the creator of Scrum, talks about his visit at Google to do an analysis of Google's first implementation of Scrum.

AtomServer – The Power of Publishing for Data Distribution

In this article, Bryon Jacob and Chris Berry introduce AtomServer, their implementation of a full-fledged Atom Store based on Apache Abdera, which is now available as open source.

An Introduction to Virtualization

It is easy to think that virtualization applies only to servers. In reality the recent resurgence of the concept is also being applied to networking, storage, and application infrastructure.

REST Anti-Patterns

In this article, Stefan Tilkov explains some of the most common anti-patterns found in applications that claim to follow a "RESTful" design and suggests ways to avoid them.

Choosing between Routing and Orchestration in an ESB

In this article, Adrien Louis and Marc Dutoo discuss the differences and relative merits of using orchestration vs. routing in a typical ESB setup, and discuss various implementation options.

Enterprise Batch Processing with Spring

Wayne Lund discusses batch processing, Spring Batch objectives and features, scenarios for usage, Spring Batch architecture, scaling, example code, failures and retrying, and the future roadmap.

User Story Estimation Techniques

Developer Jay Fields draws on his experiences as a ThoughtWorks consultant to describe effective user story estimation techniques.