J-Spring: JEE 6 and JavaFX

Paul Bakker kicks of. He’ll talk about coupling JavaFX to JEE 6. He’ll do this by using Jax-RS.

He mentions the strong points of JavaFX. He also mentions the drawbacks of JavaFX too, there are no UI components yet.

JavaFX is a completely new language targeted at the RIA platforms. Silverlight, Flex and Flash.

He goes on to describe the relevant parts of the new JEE6 spec. Especially the web profile will be an interesting part of the spec. New versions of various API’s will be released. Jax-RS is interesting in the context of this talk.

Download Glassfish v3 to start with Jee 6. Everything will be deployed as war files.

He describes the architecture of the demo application. He also implemented a desktop JavaFX application as well.

He will show a demo now…. ah too bad his vm Vista image is stalled. Hope he has more luck later.

JSF 2.0 highlights:

  • Facelets
  • Annotation support
  • Ajax support
  • Resource loading
  • Project stages

Javafx runs in an applet in a browser or as a desktop application. The applet can communicate through javascript. Hope this works better then the time I tried to integrate an applet through javascript.

JavaFX will be used as a rich control on the web page.

Put a link here to the appletstageextension api. Also look for api to interop between javascript and java (aka. LiveConnect). Paul shows how in a NetBeans window and a live example.

Next up a little info on how to integrate an Applet within your web application. Do not hardcore the urls, let the applet ask for the server address tom the current context. Look for something called codebase. Be sure to expand the method called “getProperty(java.lang.String key)”.

Demo time in the Vista VM again. Failed due to windows defender this time. Poor Paul, I can tell he’s bummed about it.

Some info on how to work with JSF @ManagedProperty and @PostConstruct. Usageof the javafx javascript method is shown, it loads an applet into your web page with a single javascript call.

JFXtras is a project that fills some of the gaps in the current javafx implementation. Code of the MigLayout in JavaFX is shown.

Now Jax-RS is discussed. REST is discussed. Looks simple to implement with Jax-RS.

Now his laptop seems to have died completely. Ah it works again. But now his remote is acting up a bit. Lot of bad luck for Paul today, but he remains well composed and continuos his talk.

How to use light ejbs, how to use jndi. Something new, global jndi, javafx web service api (Pull parser, XML and json supported, no soap support)