Flex Java Springs Overview
Flex Java Springs Overview
James Ward
www.jamesward.com
Technical Evangelist - Adobe
#6662
Applications have evolved
Easy
2004
WEB APPLICATIONS
EASE OF DEPLOYMENT
RICH INTERNET
1998 APPLICATIONS
1992
Hard
MAINFRAME CLIENT/ SERVER
Client
Limited Capability Full
Adobe’s Software Development Platform
Applications
Adobe
Media
Open Bug Database: Acrobat
Buzzword Connect
Player http:/ / bugs.adobe.com
Flex Builder
LiveCycle ColdFusion
Use any
Flash Mediatext editor
Acrobat Flash / IDE
Scene7
Server Connect Cast
Adobe AIR Application Stack
HTML Flash
Cross- OS
HTML Flex Application
JavaScript Flash ActionScript HTML Integrated
XML XML Rendering
CSS Audio
Integrated DOMs
PDF Video PDF
& Scripting
Web Server
Compile
XML/ HTTP BlazeDS or
REST LC Data Services
SOAP Web Services
J2EE Application Server
.swf
Ex isting Applications and Infrastructure
Tour de Flex - flex.org/ tour
Flex with Java via XML (RESTful / SOAP)
App Server
Web Service
XML
Client (RESTful /
SOAP)
Introducing Open Source BlazeDS
BlazeDS
Service
Data Management
BlazeDS is the remoting and HTTP- based Adapters
Data Synchronization
messaging technology which Adobe is LiveCycle
Off- line Applications
contributing to the community under LGPL
Data Paging SQL
v3
Capabilities RPC Services Hibernate
> Easily connects Flex & AIR applications to existing Web Service
server logic HTTP Service ColdFusion
> High performance data transfer for more responsive Rem ote Object Service
applications JMS
Messaging
> Real- time data push over standard HTTP Java
Publish & Subscribe
> Full pub/ sub messaging that ex tends existing Collaboration
messaging infrastructure Real Tim e Data Push
Custom…
J2EE Server
BlazeDS
POJO
AMF
Client
EJB
Other
Flex with Java via Messaging
J2EE Server
BlazeDS
Messaging
Adapter X
System X
Message JMS
Endpoint JMS Adapt er
Service Provider
Messaging
Adapter Y
System Y
RTMP
AMF
HTTP Publisher
Subscriber
Spring and Flex!
SpringSource and Adobe have formed a joint partnership to turn this idea into
reality!
The foundations of this new integration will be available as open source
– A new Spring subproject in the web portfolio:
Spring BlazeDS Integration
Focus on integrating the open source BlazeDS with Spring
12
M1 - Dec 2 0 0 8
Route http- based Flex messages to the MessageBroker through the Spring
DispatcherServlet
Expose Spring beans for remoting using typical Spring remoting exporter
configuration
13
M2 - March 2 0 0 8
14
post M2
Spring JMS integration
– Integration with the BlazeDS MessageService
– Use Spring configuration to manage BlazeDS
MessageDestinations
– Let Spring manage the JMS details
– Allows easy communication from Flex clients to Spring
message- driven POJOs
Spring 3.0 REST integration
– Provides support for multiple client- types
– Flex apps can already consume Spring 3.0 RESTful endpoints through
HTTPService
– Additional value could be realized by providing an AMFView
implementation
Response for H TTP requests w ith a ContentType= application/actionscript
web.xml
< listener>
< listener-
class> org.springframework.web.contex t.Contex tLoaderListener< / listener- class>
< / listener>
< servlet>
< servlet- name> testdrive< / servlet- name>
< servlet-
class> org.springframework.web.servlet.DispatcherServlet< / servlet- class>
< load- on- startup> 1< / load- on- startup>
< / servlet>
< filter>
< filter- name> springSecurityFilterChain< / filter- name>
< filter- class> org.springframework.web.filter.DelegatingFilterProx y< / filter- class>
< / filter>
Hibernate Integration
Or use dpHibernate
Questions?
Learn More:
> Tour de Flex - flex .org/ tour
> www.jamesward.com