• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Web Applications of the future: Combining JEE6 & JavaFX
 

Web Applications of the future: Combining JEE6 & JavaFX

on

  • 14,859 views

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.

Statistics

Views

Total Views
14,859
Views on SlideShare
14,703
Embed Views
156

Actions

Likes
2
Downloads
528
Comments
1

13 Embeds 156

http://www.slideshare.net 112
http://dharmarao-javafx.blogspot.com 24
http://www.docshut.com 6
http://dharmarao-javafx.blogspot.in 3
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
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • I find it very interesting, though I used it for JSF!!
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Web Applications of the future: Combining JEE6 & JavaFX Web Applications of the future: Combining JEE6 & JavaFX Presentation Transcript

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