Web Applications of the future: Combining JEE6 & JavaFX
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Web Applications of the future: Combining JEE6 & JavaFX

  • 15,254 views
Uploaded on

This presentation shows the most important web related new futures in JEE 6, and how to combine JEE 6 and JavaFX to create interesting applications. Topics such as JAX-RS, JSF 2.0, EJB lite and......

This presentation shows the most important web related new futures in JEE 6, and how to combine JEE 6 and JavaFX to create interesting applications. Topics such as JAX-RS, JSF 2.0, EJB lite and JavaFX/JavaScript integration is discussed.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • I find it very interesting, though I used it for JSF!!
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
15,254
On Slideshare
15,097
From Embeds
157
Number of Embeds
13

Actions

Shares
Downloads
536
Comments
1
Likes
2

Embeds 157

http://www.slideshare.net 112
http://dharmarao-javafx.blogspot.com 24
http://www.docshut.com 6
http://dharmarao-javafx.blogspot.in 4
http://www.slashdocs.com 2
http://dharmarao-javafx.blogspot.de 2
http://dharmarao-javafx.blogspot.pt 1
http://dharmarao-javafx.blogspot.ch 1
http://dharmarao-javafx.blogspot.hu 1
http://dharmarao-javafx.blogspot.co.uk 1
http://dharmarao-javafx.blogspot.nl 1
http://dharmarao-javafx.blogspot.com.br 1
http://dharmarao-javafx.blogspot.com.ar 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Developing Web Applications of the future - Combining JEE 6 & JavaFX
  • 2. Goal of this talk New features in JEE 6 Mixing JEE 6 and JavaFX A look into the near future
  • 3. About me Paul Bakker EJB 3 Trainer Info Support JSF NLJUG speaker Seam JavaFX Java Magazine author Spring Hibernate Flex
  • 4. Outline JavaFX web applications JAX-RS RESTful services Connecting JavaFX to services
  • 5. One minute JavaFX intro Sun’s RIA platform Competes with Flex, Flash and Silverlight A new language JavaFX Script Declarative UI programming
  • 6. JavaFX key features Expressiveness Easy component creation Animation Java integration Media support Write once, run anywhere...
  • 7. Current problems No components! No layout managers No selectable text Tooling
  • 8. JEE 6 ingredients Profiles EJB 3.0 => 3.1 (Lite) JSF 1.2 => 2.0 JPA 1.0 => 2.0 JAX-RS => New! WebBeans => New!
  • 9. Using JEE 6 GlassFish V3 EJB3.1, JSF 2.0 and JAX-RS No WebBeans, Servlet 3.0 and JPA 2.0 yet Only WAR deplyment
  • 10. JEE 6 & JavaFX Browser Desktop JavaScript JavaFX JavaFX HTML HTTP Server JAX-RS JSF EJB 3 JPA
  • 11. 2.0 highlights JSF Facelets Annotation support e.g. @ManagedBean AJAX support Resource loading Project Stages
  • 12. Integrating JSF & JavaFX JSF renders to HTML Use <applet> tag JavaScript for communication All text oriented functionality => JSF All flashy stuff => JavaFX
  • 13. Full page JavaFX Too limited at this moment Navigation, bookmarks, scrolling... Will be an option in future versions Ok for Swing / Desktop
  • 14. JavaFX brower integration AppletStageExtension Browser navigation Script evaluation Call JavaScript methods
  • 15. JavaFX calling JavaScript
  • 16. Server url JavaFX uses web services to connect to the server Do not hardcode the server url Use FX.getParameter
  • 17. JSF page initialization Use @ManagedProperty to inject a request parameter Use @PostConstruct to initialize values
  • 18. JFXtras Layout Managers MigLayout port Compontents Dialogs Unit Testing http://code.google.com/p/jfxtras/
  • 19. MigLayout example
  • 20. JEE 6 & JavaFX Browser Desktop JavaScript JavaFX JavaFX HTML HTTP Server JAX-RS JSF EJB 3 JPA
  • 21. JAX-RS Expose RESTful web services Annotation based Easily combined with EJB and JPA But no @EJB injection (yet)
  • 22. RESTful intro Web style web services Resources over HTTP Uniform Interface Connectedness Addressability Statelessness
  • 23. JAX-RS @Path Resource class root path A sub-resource
  • 24. JAX-RS @GET Method handling GET requests @Produces Content type supported @PathParam Extract value from URI template
  • 25. Using JPA Use out-of-container JPA confguration Use EJB (Lite) Session Beans Lookup Global JNDI namespace @EJB Use Session Bean as resource Might not be in JEE 6
  • 26. JEE 6 & JavaFX Browser Desktop JavaScript JavaFX JavaFX HTML HTTP Server JAX-RS JSF EJB 3 JPA
  • 27. lite EJB 3 No interface required Runs in the web profile No Message Driven Beans No remote interface No Timer service No EJB 2.x compatibility
  • 28. EJB 3.1 lite Session Bean
  • 29. Global JNDI namespace A portable namespace java:global[/<app-name>]/<module-name>/ <bean-name>
  • 30. Using Global JNDI MobileShopServices.war
  • 31. Converting Resource Entity Request Converter XML Response JAXB
  • 32. Converting Entities Each Entity has two converters A single Entity converter A list converter A JAXB annotated wrapper class
  • 33. Converter example
  • 34. JavaFX web service API JavaFX style HTTP calls Pull style parsing XML and JSON supported REST only (no SOAP)
  • 35. JavaFX Production Suite Designer => Developer Workflow
  • 36. Production Suite Workflow Place all Replace Photoshop elements on dummy scene elements Add Add action animation handlers
  • 37. More about this June 29: Summer Class Bert Ertman & Paul Bakker
  • 38. More about this June 29: Summer Class JSF 2.0 Servlet 3.0 EJB 3.1 (lite) JPA 2.0 WebBeans JAX-RS JavaFX (including new beta)