Calling Seam component from JavaFX

To use JavaFX in enterprise, you need to be able to connect JavaFX to enterprise backend such as Java EE, Seam or Spring. Here is an example how to call Seam component from JavaFX using Exadel Flamingo.

Seam component (server side)

public class MessageManager {

   public String callMe () {
        return "Seam component says: what's up"?;

JavaFX (client side)

public interface MessageManager {
   public String callMe ();
public class AppServiceFactory {
   public static MessageManager getMessageManager() {
	return (MessageManager) ServiceFactory.getService(MessageManager.class,

JavaFX script:

var reply : String;
function call(): Void {
     reply = AppServiceFactory.getMessageManager().callMe();

That’s it. Simple, easy and transparent. Seam is used the same way if you were building a JSF-based application.

Webinar recording: Build RIA with JavaFX, Flamingo and Seam

If you missed Build RIA with JavaFX, Flamingo and Seam webinar yesterday, you can listen to the recording here.

Enterprise JavaFX: Our Experience Building a JavaFX UI for a Seam Booking Application

This article is also posted on

This is a guest post by Anton Polyakov. Anton is Senior Developer at Exadel, he describes our experience building a JavaFX front end for a Seam booking application.

JavaFX is new tool set for developing and delivering Rich Internet Applications or RIAs. JavaFX 1.0 was released in December 2008, and JavaFX 1.2 was released in June 2009. As these new releases have rolled out, the JavaFX community has been growing fast. This growth has produced a large selection of resources, articles, blog posts, books, and extension projects.

Over this time, while JavaFX has been used extensively to provide “richness� in applications, it has been mostly “missing in action� for enterprise-level Web applications that would involve greater integration of JavaFX with the server side of the application. Remember, a Rich Internet Application is delivered from a server to the the client, but, more importantly, it continues to communicate with the server. The UI runs on the client while the application logic runs on the server.

We believe that for JavaFX to continue growing and compete against Flex and Silverlight, it should be acceptable by the enterprise for use in applications that take full advantage of both sides of Rich Internet Applications (Rich Enterprise Applications). Adobe and its community has done an excellent job demonstrating that Flex can be used to build real-world enterprise applications. The same needs to happen for JavaFX.

Exadel’s Experience with JavaFX

Exadel has been working with JavaFX for more than a year now. In June of 2008, we took the popular Jboss Seam hotel booking Web application and built a JavaFX UI on it as a replacement for the standard JSF UI. Back then, we used a prerelease version of JavaFX. (There was very little interest in JavaFX at that time.)

Fast forward to today. We took the same Seam booking application and updated the JavaFX UI to JavaFX 1.2. You can find the demo running here. For your local use, you can also download the file to run or a Maven project to build this application.

Redoing the Booking Application

What we are going to do in the rest of this article is share our experience building this demo as an example of building an enterprise JavaFX applications. The task wasn’t easy (but then it wouldn’t have been as fun).

Continue reading

Enterprise JavaFX – Seam booking demo application

You can now view or download and deploy one of the first real enterprise JavaFX application. We took the popular Seam booking demo application and created JavaFX UI for it. The JavaFX side is connected to Seam via Flamingo RIA framework.


View online
You can view and run the application by going to this URL: You will also see JSF/RichFaces and Flex versions of the application. All instances are connected to the same Seam back-end. Once you register, you can use the same name/password information to login using any other user interface.

Download and run
You can also download, deploy and run this application on your machine. There are two ways you can do it:

  1. Deploy (ready) booking.ear file
  2. Build the application with Maven and deploy it

Download the source and application (.ear). You will find instructions on how to deploy and build inside the zip file.

We are working on an article to tell you about our experience building an enterprise application with JavaFX. Lastly, yesterday we released new version of our JavaFX Studio plug-in for Eclipse. Get it here.

Have fun with JavaFX!

Seam hotel booking with JavaFX

More than a year ago Exadel used Flamingo RIA framework to create Flex and JavaFX interfaces for the popular Seam booking application in addition to standard JSF UI. You can still find the original applications running here. You can register once and login using any user interface.

Since we built the JavaFX interface last year, we used a preview version of JavaFX. We have started converting the JavaFX user interface to use the latest JavaFX version 1.2 and also use the new UI controls.

Once we are done, we will make the application (and sources) available for download. As this would be the first true JavaFX enterprise application, we will share our experience developing such application: what’s good, what’s not and what needs to be improved.

Screen shot of the new version:


Enterprise JavaFX – complete edition

The following series shows how to connect JavaFX to enterprise server-side technologies. This series covers Seam.

A future series will cover how to connect JavaFX with Spring framework.