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.
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
  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 :)

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.