News »Browse Articles »
Integrating JavaFX with JavaEE Using Spring and Hessian Protocol
0
Integrating JavaFX with JavaEE Using Spring and Hessian Protocol
Recently, Sun released JavaFX Version 1.1, a new technology that is focused on developing client-side applications with a better look and feel than before. This technology is used to create rich internet applications that behave like desktop applications. As we know, we can split an enterprise application into a server-side application and a client-side application. If we use JavaFX technology to create the client, the problem we have to face is how to exchange information between the client and the server. In the past, we showed how we can do that using JavaFX HTTP and the XML API, but in this article we want to demonstrate another way to achieve it. Generally speaking, there are several protocols that can be used for this purpose, but we will focus our attention on the Hessian Binary Web Service protocol. In particular, we want to describe how we can integrate JavaFX on the client side and the Spring framework with the Hessian protocol on the server side. To demonstrate this, we will develop a service using Spring and a JavaFX client that calls this remote service using the Hessian protocol. To understand better the topic we will cover, it is useful to briefly introduce the Hessian protocol.
Brief Hessian Protocol Overview
The Hessian protocol is a binary protocol used to invoke remote services, and it includes a web service protocol and a serialization protocol. It based on HTTP, in this way avoiding firewall-related problems, so it can be used in intranet and external network applications. This protocol doesn`t need to use attachments to carry binary information because it is based on a binary data representation. Moreover, there are several implementations in different languages and it is quite simple to use. One of the main advantages is that it is really efficient and it permits developing remote services quickly. Another useful feature is that it is fully integrated in the Spring framework. All these features make the Hessian protocol suitable to be used as a reference protocol in client-server communication. To create a Hessian service on the server side we need to:
* Create an interface describing the service methods.
* Implement the interface using a POJO.
* Configure the service in the servlet engine.
On the client side we need to:
* Create a HessianProxyFactory that can be used to invoke remote methods.
Source:
http://today.java.net/article/2009/06/19/integrating-javafx-javaee-using-spring-
Brief Hessian Protocol Overview
The Hessian protocol is a binary protocol used to invoke remote services, and it includes a web service protocol and a serialization protocol. It based on HTTP, in this way avoiding firewall-related problems, so it can be used in intranet and external network applications. This protocol doesn`t need to use attachments to carry binary information because it is based on a binary data representation. Moreover, there are several implementations in different languages and it is quite simple to use. One of the main advantages is that it is really efficient and it permits developing remote services quickly. Another useful feature is that it is fully integrated in the Spring framework. All these features make the Hessian protocol suitable to be used as a reference protocol in client-server communication. To create a Hessian service on the server side we need to:
* Create an interface describing the service methods.
* Implement the interface using a POJO.
* Configure the service in the servlet engine.
On the client side we need to:
* Create a HessianProxyFactory that can be used to invoke remote methods.
Source:
http://today.java.net/article/2009/06/19/integrating-javafx-javaee-using-spring-
Search News
News Categories
What's the News?
Post a link to something interesting from another site, or submit your own original writing for the Java community to read.
Most Popular News
-
How to stand out from other Java/JEE Professionals?
Published about 14-01-2009 | Rated +3 -
10 reasons IT certification will be important in 2009
Published about 05-01-2009 | Rated +2 -
The 9 hottest skills for `09
Published about 02-01-2009 | Rated +1 -
New Features in Servlets 3.0
Published about 05-01-2009 | Rated +4
Most Recent User Submitted News
- Eclipse 4 Goes the Extra Mile
Published about 26-11-2009 | Rated 0 - Java Pseudo Transactions With Non-Transactional Resources
Published about 26-01-2009 | Rated +1 - Java Web services: Introducing Metro
Published about 11-11-2009 | Rated 0 - What is the Appeal of Ajax and GWT?
Published about 04-07-2009 | Rated 0








