Integrate Flex With Spring Framework
Upcoming SlideShare
Loading in...5
×
 

Integrate Flex With Spring Framework

on

  • 7,358 views

 

Statistics

Views

Total Views
7,358
Views on SlideShare
7,334
Embed Views
24

Actions

Likes
2
Downloads
262
Comments
2

7 Embeds 24

http://www.slideshare.net 13
http://albert-myptc.blogspot.com 6
http://www.lmodules.com 1
http://www.health.medicbd.com 1
http://albert-myptc.blogspot.jp 1
http://albert-myptc.blogspot.tw 1
http://albert-myptc.blogspot.in 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Integrate Flex With Spring Framework Integrate Flex With Spring Framework Presentation Transcript

  • Integrate Flex with Spring Framework
    Albert Guo
    junyuo@gmail.com
  • Pre-requisite
    Download BlazeDS
    Create a Dynamic Web Project
    Integrate Flex with Spring Framework
    Create a Flex Project
    Reference
    2
    Agenda
  • Eclipse3.4(J2EE Version):
    http://www.eclipse.org/downloads/
    Flex Builder3
    http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email&sdid=EOZPI
    Tomcat 6
    http://tomcat.apache.org/
    BlazeDS
    http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/
    Spring Framework
    http://www.springsource.org/download
    Spring BlazeDS Integration
    http://www.springsource.org/spring-flex
    ANTLR3.0
    http://www.antlr.org/download.html
    AOPAlliance
    http://mirrors.ibiblio.org/pub/mirrors/maven2/aopalliance/aopalliance/1.0/
    Jackson
    http://snapshots.repository.codehaus.org/org/codehaus/jackson/jackson-core-lgpl/1.1.0/
    http://snapshots.repository.codehaus.org/org/codehaus/jackson/jackson-mapper-lgpl/1.1.0-SNAPSHOT/
    Pre-requisite
    3
  • Download BlazeDS
  • download BlazeDS from http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/
    unzip file and extract BlazeDS.war
    Download BlazeDS
    5
  • 6
    BlazeDS role
  • 7
    The Architecture of a BlazeDS Server
  • Create a Dynamic Web Project
  • Create a Dynamic Web Project
    9
  • Create a Dynamic Web Project – cont.
    Assign project name,
    called flex-test-server
    Click Next
    10
  • Create a Dynamic Web Project – cont.
    Assign context root, called “flex-test”
    Click Finish
    11
  • Create a Dynamic Web Project – cont.
    You can see this project structure
    as you finished the project creation process
    12
  • Create a Dynamic Web Project – cont.
    Import configuration files and
    jar files from BlazeDS.war
    13
  • Create a Dynamic Web Project – cont.
    Assign the directory which extract
    from blazeds.war
    Select the two directories
    Click Finish
    14
  • Create a Dynamic Web Project – cont.
    Click “Yes To All”
    15
  • Create a Dynamic Web Project – cont.
    Set defualt channel in services-config.xml
    Configureendponturl in services-config.xml
    16
  • Create a Dynamic Web Project – cont.
    Deploy and startup Tomcat server
    Connect to http://localhost:8080/flex-test/messagebroker/amf,
    you will see a blank page if correct
    17
  • Integrate Flex with Spring Framework
  • Integrate Flex with Spring Framework
    Create a spring folder which
    is under WEB-INF
    19
  • Integrate Flex with Spring Framework – cont.
    Create application-config.xml in
    /WEB-INF/spring
    20
  • Integrate Flex with Spring Framework – cont.
    Click HelloFlex class in
    exmaple package
    Click FInsih
    21
  • Integrate Flex with Spring Framework – cont.
    Define a simple business method to say hello
    Utizile annotation to define service name and remoting destination channels
    Use @RemotingInculde or @RemotingExclude to define the method can be access or not
    • You don’t need to define anything in remoting-config.xml
    22
  • Integrate Flex with Spring Framework – cont.
    DefineHelloFlex bean into application-config.xml
    Define message borker into application-config.xml
    23
  • Integrate Flex with Spring Framework – cont.
    Define spring DispatherServlet into web.xml
    Defineservet mapping into web.xml
    24
  • Integrate Flex with Spring Framework – cont.
    Deploy and startup Tomcat server
    Connect to http://localhost:8080/flex-test/spring/messagebroker/amf,
    you will see a blank page if correct
    25
  • Create a Flex Project
  • Create a Flex Project
    Define a Flex Project name,
    which called “flex-test-client”
    Click Next
    27
  • Create a Flex Project – cont.
    Define root folder to flex-test-server/WebContent
    Define root url
    Define context root
    Click Validate Configuration
    Click Next
    28
  • Create a Flex Project – cont.
    Click Finish
    29
  • Create a Flex Project – cont.
    30
  • Create a Flex Project – cont.
    31
  • Create a Flex Project – cont.
    Add one more method in
    HelloFlex class
    32
  • Create a Flex Project – cont.
    Add one more button in mxml file
    33
  • Create a Flex Project – cont.
    34
  • Create a Flex Project – cont.
    Create a calculation service to provide add service
    35
  • Create a Flex Project – cont.
    Register service bean into application-config.xml
    36
  • Create a Flex Project – cont.
    37
  • Create a Flex Project – cont.
    38
  • An Introduction to Spring BlazeDS Integration
    http://ria.dzone.com/articles/introduction-spring-blazeds?page=0,0
    Flex Spring整合
    http://www.javaeye.com/topic/392836
    Spring BlazeDS Integration Reference Guide
    http://static.springsource.org/spring-flex/docs/1.0.x/reference/htmlsingle/spring-flex-reference.html
    3.4. Exporting Beans for Remoting with @RemotingDestination
    http://static.springsource.org/spring-flex/docs/1.0.x/reference/html/ch03s04.html
    39
    Reference