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
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)
This presentation shows the most important web rela more
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. less
1 comments
Comments 1 - 1 of 1 previous next Post a comment