InfoQ

News

Hessian Binary Web Service Protocol Adds Adobe Flash/Flex Support

Posted by Jon Rose on Sep 19, 2007

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

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.