SlideShare una empresa de Scribd logo
1 de 39
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 ,[object Object],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

Más contenido relacionado

La actualidad más candente

Reshaping Enterprise Architecture
Reshaping Enterprise Architecture Reshaping Enterprise Architecture
Reshaping Enterprise Architecture
WSO2
 
WSO2 Platform Introduction - Why,What and How
WSO2 Platform Introduction - Why,What and How WSO2 Platform Introduction - Why,What and How
WSO2 Platform Introduction - Why,What and How
WSO2
 

La actualidad más candente (19)

Anypoint lessons
Anypoint lessonsAnypoint lessons
Anypoint lessons
 
Reshaping Enterprise Architecture
Reshaping Enterprise Architecture Reshaping Enterprise Architecture
Reshaping Enterprise Architecture
 
Microservices for the Masses with Spring Boot, JHipster, and JWT - Devoxx UK...
 Microservices for the Masses with Spring Boot, JHipster, and JWT - Devoxx UK... Microservices for the Masses with Spring Boot, JHipster, and JWT - Devoxx UK...
Microservices for the Masses with Spring Boot, JHipster, and JWT - Devoxx UK...
 
Firebase Auth Tutorial
Firebase Auth TutorialFirebase Auth Tutorial
Firebase Auth Tutorial
 
Android - Getting Started With Firebase Auth
Android - Getting Started With Firebase AuthAndroid - Getting Started With Firebase Auth
Android - Getting Started With Firebase Auth
 
Flux - rethink in design pattern
Flux - rethink in design patternFlux - rethink in design pattern
Flux - rethink in design pattern
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Modernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web AppModernizing Twitter for Windows as a Progressive Web App
Modernizing Twitter for Windows as a Progressive Web App
 
Migration to ColdFusion 11 – making it seamless and easy anit
Migration to ColdFusion 11 – making it seamless and easy   anitMigration to ColdFusion 11 – making it seamless and easy   anit
Migration to ColdFusion 11 – making it seamless and easy anit
 
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
Microservices for the Masses with Spring Boot, JHipster, and JWT - J-Spring 2017
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
 
ASP.NET Core MVC + Web API with Overview (Post RC2)
ASP.NET Core MVC + Web API with Overview (Post RC2)ASP.NET Core MVC + Web API with Overview (Post RC2)
ASP.NET Core MVC + Web API with Overview (Post RC2)
 
CAT Release November 2017
CAT Release November 2017CAT Release November 2017
CAT Release November 2017
 
Mule esb
Mule esbMule esb
Mule esb
 
Micro frontends Web component approach con VUEJS
Micro frontends Web component approach con VUEJSMicro frontends Web component approach con VUEJS
Micro frontends Web component approach con VUEJS
 
ASP.NET 5: What's the Big Deal
ASP.NET 5: What's the Big DealASP.NET 5: What's the Big Deal
ASP.NET 5: What's the Big Deal
 
WSO2 Platform Introduction - Why,What and How
WSO2 Platform Introduction - Why,What and How WSO2 Platform Introduction - Why,What and How
WSO2 Platform Introduction - Why,What and How
 
Introducing ASP.NET Core 2.0
Introducing ASP.NET Core 2.0Introducing ASP.NET Core 2.0
Introducing ASP.NET Core 2.0
 
Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016Developer Insights for Application Upgrade to ColdFusion 2016
Developer Insights for Application Upgrade to ColdFusion 2016
 

Similar a Integrate Flex With Spring Framework

Flex In Portal Final
Flex In Portal   FinalFlex In Portal   Final
Flex In Portal Final
Sunil Patil
 
Asp net mvc
Asp net mvcAsp net mvc
Asp net mvc
bgrynko
 
Flex And Java Integration
Flex And Java IntegrationFlex And Java Integration
Flex And Java Integration
ravinxg
 

Similar a Integrate Flex With Spring Framework (20)

Flex In Portal Final
Flex In Portal   FinalFlex In Portal   Final
Flex In Portal Final
 
Flex Introduction
Flex Introduction Flex Introduction
Flex Introduction
 
Eclipse plug in mylyn & tasktop
Eclipse plug in mylyn & tasktopEclipse plug in mylyn & tasktop
Eclipse plug in mylyn & tasktop
 
Adobe Flex4
Adobe Flex4 Adobe Flex4
Adobe Flex4
 
DIY Flex
DIY FlexDIY Flex
DIY Flex
 
DIY Flex
DIY FlexDIY Flex
DIY Flex
 
Asset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's GuideAsset Model Import FlexConnector Developer's Guide
Asset Model Import FlexConnector Developer's Guide
 
Introduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic ResourcesIntroduction To Adobe Flex And Semantic Resources
Introduction To Adobe Flex And Semantic Resources
 
Asp net mvc
Asp net mvcAsp net mvc
Asp net mvc
 
Test
TestTest
Test
 
Sprint Portlet MVC Seminar
Sprint Portlet MVC SeminarSprint Portlet MVC Seminar
Sprint Portlet MVC Seminar
 
Setup ColdFusion application using fusebox mvc architecture
Setup ColdFusion application using fusebox mvc architectureSetup ColdFusion application using fusebox mvc architecture
Setup ColdFusion application using fusebox mvc architecture
 
Aleksandr Kutsan "Managing Dependencies in C++"
Aleksandr Kutsan "Managing Dependencies in C++"Aleksandr Kutsan "Managing Dependencies in C++"
Aleksandr Kutsan "Managing Dependencies in C++"
 
Spring User Guide
Spring User GuideSpring User Guide
Spring User Guide
 
Leveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
Leveraging BlazeDS, Java, and Flex: Dynamic Data TransferLeveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
Leveraging BlazeDS, Java, and Flex: Dynamic Data Transfer
 
Spring Framework -I
Spring Framework -ISpring Framework -I
Spring Framework -I
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
Building Rich Applications with Appcelerator
Building Rich Applications with AppceleratorBuilding Rich Applications with Appcelerator
Building Rich Applications with Appcelerator
 
GE Predix 新手入门 赵锴 物联网_IoT
GE Predix 新手入门 赵锴 物联网_IoTGE Predix 新手入门 赵锴 物联网_IoT
GE Predix 新手入门 赵锴 物联网_IoT
 
Flex And Java Integration
Flex And Java IntegrationFlex And Java Integration
Flex And Java Integration
 

Más de Guo Albert

JPA Optimistic Locking With @Version
JPA Optimistic Locking With @VersionJPA Optimistic Locking With @Version
JPA Optimistic Locking With @Version
Guo Albert
 
OCEJPA Study Notes
OCEJPA Study NotesOCEJPA Study Notes
OCEJPA Study Notes
Guo Albert
 
OCEJPA(1Z0-898) Preparation Tips
OCEJPA(1Z0-898) Preparation TipsOCEJPA(1Z0-898) Preparation Tips
OCEJPA(1Z0-898) Preparation Tips
Guo Albert
 
JPA lifecycle events practice
JPA lifecycle events practiceJPA lifecycle events practice
JPA lifecycle events practice
Guo Albert
 
How to avoid check style errors
How to avoid check style errorsHow to avoid check style errors
How to avoid check style errors
Guo Albert
 
NIG系統報表開發指南
NIG系統報表開發指南NIG系統報表開發指南
NIG系統報表開發指南
Guo Albert
 
Ease Your Effort of Putting Data into History Table
Ease Your Effort of Putting Data into History TableEase Your Effort of Putting Data into History Table
Ease Your Effort of Putting Data into History Table
Guo Albert
 
NIG 系統開發指引
NIG 系統開發指引NIG 系統開發指引
NIG 系統開發指引
Guo Albert
 
NIG系統開發文件閱讀步驟
NIG系統開發文件閱讀步驟NIG系統開發文件閱讀步驟
NIG系統開發文件閱讀步驟
Guo Albert
 
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG SystemForm Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
Guo Albert
 
A Short Intorduction to JasperReports
A Short Intorduction to JasperReportsA Short Intorduction to JasperReports
A Short Intorduction to JasperReports
Guo Albert
 
Apply Template Method Pattern in Report Implementation
Apply Template Method Pattern in Report ImplementationApply Template Method Pattern in Report Implementation
Apply Template Method Pattern in Report Implementation
Guo Albert
 
Utilize Commons BeansUtils to do copy object
Utilize Commons BeansUtils to do copy objectUtilize Commons BeansUtils to do copy object
Utilize Commons BeansUtils to do copy object
Guo Albert
 
Apply my eclipse to do entity class generation
Apply my eclipse to do entity class generationApply my eclipse to do entity class generation
Apply my eclipse to do entity class generation
Guo Albert
 
Nig project setup quickly tutorial
Nig project setup quickly tutorialNig project setup quickly tutorial
Nig project setup quickly tutorial
Guo Albert
 
Spring JDBCTemplate
Spring JDBCTemplateSpring JDBCTemplate
Spring JDBCTemplate
Guo Albert
 

Más de Guo Albert (20)

AWS IAM (Identity and Access Management) Policy Simulator
AWS IAM (Identity and Access Management) Policy SimulatorAWS IAM (Identity and Access Management) Policy Simulator
AWS IAM (Identity and Access Management) Policy Simulator
 
TOEIC 準備心得
TOEIC 準備心得TOEIC 準備心得
TOEIC 準備心得
 
DBM專案環境建置
DBM專案環境建置DBM專案環境建置
DBM專案環境建置
 
JPA Optimistic Locking With @Version
JPA Optimistic Locking With @VersionJPA Optimistic Locking With @Version
JPA Optimistic Locking With @Version
 
OCEJPA Study Notes
OCEJPA Study NotesOCEJPA Study Notes
OCEJPA Study Notes
 
OCEJPA(1Z0-898) Preparation Tips
OCEJPA(1Z0-898) Preparation TipsOCEJPA(1Z0-898) Preparation Tips
OCEJPA(1Z0-898) Preparation Tips
 
JPA lifecycle events practice
JPA lifecycle events practiceJPA lifecycle events practice
JPA lifecycle events practice
 
XDate - a modern java-script date library
XDate -  a modern java-script date libraryXDate -  a modern java-script date library
XDate - a modern java-script date library
 
How to avoid check style errors
How to avoid check style errorsHow to avoid check style errors
How to avoid check style errors
 
NIG系統報表開發指南
NIG系統報表開發指南NIG系統報表開發指南
NIG系統報表開發指南
 
Ease Your Effort of Putting Data into History Table
Ease Your Effort of Putting Data into History TableEase Your Effort of Putting Data into History Table
Ease Your Effort of Putting Data into History Table
 
NIG 系統開發指引
NIG 系統開發指引NIG 系統開發指引
NIG 系統開發指引
 
NIG系統開發文件閱讀步驟
NIG系統開發文件閱讀步驟NIG系統開發文件閱讀步驟
NIG系統開發文件閱讀步驟
 
Form Bean Creation Process for NIG System
Form Bean Creation Process for NIG SystemForm Bean Creation Process for NIG System
Form Bean Creation Process for NIG System
 
A Short Intorduction to JasperReports
A Short Intorduction to JasperReportsA Short Intorduction to JasperReports
A Short Intorduction to JasperReports
 
Apply Template Method Pattern in Report Implementation
Apply Template Method Pattern in Report ImplementationApply Template Method Pattern in Report Implementation
Apply Template Method Pattern in Report Implementation
 
Utilize Commons BeansUtils to do copy object
Utilize Commons BeansUtils to do copy objectUtilize Commons BeansUtils to do copy object
Utilize Commons BeansUtils to do copy object
 
Apply my eclipse to do entity class generation
Apply my eclipse to do entity class generationApply my eclipse to do entity class generation
Apply my eclipse to do entity class generation
 
Nig project setup quickly tutorial
Nig project setup quickly tutorialNig project setup quickly tutorial
Nig project setup quickly tutorial
 
Spring JDBCTemplate
Spring JDBCTemplateSpring JDBCTemplate
Spring JDBCTemplate
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Integrate Flex With Spring Framework

  • 1. Integrate Flex with Spring Framework Albert Guo junyuo@gmail.com
  • 2. Pre-requisite Download BlazeDS Create a Dynamic Web Project Integrate Flex with Spring Framework Create a Flex Project Reference 2 Agenda
  • 3. 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
  • 5. download BlazeDS from http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/ unzip file and extract BlazeDS.war Download BlazeDS 5
  • 7. 7 The Architecture of a BlazeDS Server
  • 8. Create a Dynamic Web Project
  • 9. Create a Dynamic Web Project 9
  • 10. Create a Dynamic Web Project – cont. Assign project name, called flex-test-server Click Next 10
  • 11. Create a Dynamic Web Project – cont. Assign context root, called “flex-test” Click Finish 11
  • 12. Create a Dynamic Web Project – cont. You can see this project structure as you finished the project creation process 12
  • 13. Create a Dynamic Web Project – cont. Import configuration files and jar files from BlazeDS.war 13
  • 14. Create a Dynamic Web Project – cont. Assign the directory which extract from blazeds.war Select the two directories Click Finish 14
  • 15. Create a Dynamic Web Project – cont. Click “Yes To All” 15
  • 16. Create a Dynamic Web Project – cont. Set defualt channel in services-config.xml Configureendponturl in services-config.xml 16
  • 17. 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
  • 18. Integrate Flex with Spring Framework
  • 19. Integrate Flex with Spring Framework Create a spring folder which is under WEB-INF 19
  • 20. Integrate Flex with Spring Framework – cont. Create application-config.xml in /WEB-INF/spring 20
  • 21. Integrate Flex with Spring Framework – cont. Click HelloFlex class in exmaple package Click FInsih 21
  • 22.
  • 23. Integrate Flex with Spring Framework – cont. DefineHelloFlex bean into application-config.xml Define message borker into application-config.xml 23
  • 24. Integrate Flex with Spring Framework – cont. Define spring DispatherServlet into web.xml Defineservet mapping into web.xml 24
  • 25. 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
  • 26. Create a Flex Project
  • 27. Create a Flex Project Define a Flex Project name, which called “flex-test-client” Click Next 27
  • 28. 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
  • 29. Create a Flex Project – cont. Click Finish 29
  • 30. Create a Flex Project – cont. 30
  • 31. Create a Flex Project – cont. 31
  • 32. Create a Flex Project – cont. Add one more method in HelloFlex class 32
  • 33. Create a Flex Project – cont. Add one more button in mxml file 33
  • 34. Create a Flex Project – cont. 34
  • 35. Create a Flex Project – cont. Create a calculation service to provide add service 35
  • 36. Create a Flex Project – cont. Register service bean into application-config.xml 36
  • 37. Create a Flex Project – cont. 37
  • 38. Create a Flex Project – cont. 38
  • 39. 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