SlideShare a Scribd company logo
Integrating Flex using AMFRemoting & Messaging in FlexChristopher Grant - crgrant@gmail.com 1/20/2010
AgendaWhat is AMFData Integration Options in FlexCapabilities of AMFWhy it is usefulBenefits of AMFWhere to get itServer Side Options for AMFHow to use itTerminologyConfigurationExamplesSimple RemotingSimple MessagingCustom Objects
What is it
Data Integration OptionsHyper Text Transfer Protocol – HTTPHTTPServiceSimple Object Access Protocol – SOAPWebServiceAction Message Format – AMFRemotingRemoteObjectMessagingConsumerPublisher
AMF CapabilitiesRemoting Services allow your Flex application to directly invoke methods of Java objects deployed in your application server.Message Services provide a publish/subscribe infrastructure that enables your Flex application to publish messages and subscribe to a messaging destination, enabling the development of real-time data push and collaborative applications. 
Why use it
Benefits of AMFBinary transfer is faster than textObjects are very small and are compressed using zlibFast Serialization/ DeserializationDesigned to serialize and deserialize quickly under low memory and slower CPU conditionsAMF data is parsed directly into objects, meaning there is no lag for interpretation or parsingActionScript Object formatSupport for Native Types and Custom classes
Where to get it
ServerSide AMF OptionsPHP:  Zend, AMFPHP,  WebOrb for PHP, SabreAMFJava: BlazeDS*, Red5, GraniteDS*, WebOrb for Java.Net: FluorineFx*, WebOrb* for .Net, AMF.NETPython:PyAMFRuby on Rails: RubyAMF, WebOrb for Ruby on RailsColdFusion: Built in** indicates push / messaging capabilities
How do you use it
TerminologyChannelProtocol-based conduitsChannel SetsImproves the quality of service in the face of network failures or individual Channel problemsEndpointThe server interface responsible for encoding and decoding data into messagesDestinationClient side reference to resources used for both publish-subscribe and point-to-point messagingPolling vs StreamingPolling opens & closes the connection by messageStreaming keeps the connection open at all times
Channels, Set and Endpoints Oh MY!ClientDestinationEndPointChannelStreamingDestinationDestinationEndPointChannelStreamingChannel SetDestinationEndPointChannelPollingDestination
ConfigurationCode basedAS and MXMLConfig Filesservices-configToolKitSwiz
Config FilesServices-configNeed to tell flex where it isSetup with IDE WizardSetup ManuallyFlex Compiler arguments:  -services "C:\....”Pointers to remoting-config.xmlproxy-config.xmlmessaging-config.xmlUsed by Client and Server
Config File ExcerptServices-config.xml…<service-include file-path="remoting-config.xml" />…<channel-definition id="channel-amf“ class="mx.messaging.channels.AMFChannel"><endpointurl="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"	class="flex.messaging.endpoints.AMFEndpoint" /></channel-definition>Remoting-config.xml<service id="remoting-service“ class="flex.messaging.services.RemotingService“>…<destination id="HelloWorld"><properties> <source>com.grant.Thing</source> </properties><channels> <channel ref="channel-amf" /> </channels>…</destination>…</service>
Simple MXML Excerpt<mx:RemoteObject	id=“myRemoteObject" destination="HelloWorld"	result="resultHandler(event)"	fault="faultHandler(event)" /><mx:Buttonlabel=“SayHello“ click=" myRemoteObject.getOperation(“SayHello”).send();" />private function resultHandler(evt:ResultEvent):void{resultTxt.text= evt.result.toString();}
Real ExamplesLet’s look at code already…geez!

More Related Content

PDF
AMF Testing Made Easy! DeepSec 2012
PPTX
Advanced WCF Workshop
PPS
Wcf Transaction Handling
KEY
The use of Symfony2 @ Overblog
PDF
RIA With Flex & Java Using BlazeDS
PPTX
On demand video_streaming_apps_and_its_server_side_cloud_infrastructure_at_aws
PPTX
Simple object access protocol
PPT
Building scalable and language independent java services using apache thrift
AMF Testing Made Easy! DeepSec 2012
Advanced WCF Workshop
Wcf Transaction Handling
The use of Symfony2 @ Overblog
RIA With Flex & Java Using BlazeDS
On demand video_streaming_apps_and_its_server_side_cloud_infrastructure_at_aws
Simple object access protocol
Building scalable and language independent java services using apache thrift

What's hot (19)

PPTX
Phalcon 2 High Performance APIs - DevWeekPOA 2015
DOCX
Remote Method Invocation
PPT
Comparison between-rpc-rmi-and-webservices-son-1228374226080667-8
PPT
An Introduction to Websphere sMash for PHP Programmers
PDF
Http Parameter Pollution, a new category of web attacks
PDF
Advanced Java
PDF
Java RMI Detailed Tutorial
PDF
WoMakersCode 2016 - Shit Happens
PPTX
Java RMI Presentation
PPT
Python session.11 By Shanmugam
PPT
Basic Networking in Java
DOC
vishal_sharma: python email sending software
PDF
Brief introduction into Padding Oracle attack vector
PDF
HTTP Parameter Pollution (HPP) - SEaCURE.it edition
PPTX
Burpsuite yara
PPT
What's New in Spring 3.0
DOCX
Asynchronous reading and writing http r equest
PDF
Protecting Web Services from DDOS Attack
PPTX
Java RMI(Remote Method Invocation)
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Remote Method Invocation
Comparison between-rpc-rmi-and-webservices-son-1228374226080667-8
An Introduction to Websphere sMash for PHP Programmers
Http Parameter Pollution, a new category of web attacks
Advanced Java
Java RMI Detailed Tutorial
WoMakersCode 2016 - Shit Happens
Java RMI Presentation
Python session.11 By Shanmugam
Basic Networking in Java
vishal_sharma: python email sending software
Brief introduction into Padding Oracle attack vector
HTTP Parameter Pollution (HPP) - SEaCURE.it edition
Burpsuite yara
What's New in Spring 3.0
Asynchronous reading and writing http r equest
Protecting Web Services from DDOS Attack
Java RMI(Remote Method Invocation)
Ad

Viewers also liked (19)

PDF
Introduction To AMF
PPTX
Brakeman Gem
PPT
Axcel Campus Programmes
PDF
Codemash 2007 - Scm with subversion
PPTX
Hp fortify source code analyzer(sca)
PDF
In the workshop with GCP, Home Depot & Cloud Foundry
PDF
Lean Software Development
PDF
Evolving toward Microservices - O’Reilly SACON Keynote
PDF
Monolith to Microservices - O’Reilly Oscon
PDF
IASA Architecture Pillars - Quality Attributes
PDF
The Profession Of IT Architecture
PPT
advantages and disadvantages of technology
PPTX
Advantages and Disadvantages of Technology
PPT
Advantages and disadvantages of technology
PPT
Investor Presentation Template
PPTX
Advantages and Disadvantages of Technology
PDF
Computer technology power point
PPT
Technology Presentation
PPT
Technology powerpoint presentations
Introduction To AMF
Brakeman Gem
Axcel Campus Programmes
Codemash 2007 - Scm with subversion
Hp fortify source code analyzer(sca)
In the workshop with GCP, Home Depot & Cloud Foundry
Lean Software Development
Evolving toward Microservices - O’Reilly SACON Keynote
Monolith to Microservices - O’Reilly Oscon
IASA Architecture Pillars - Quality Attributes
The Profession Of IT Architecture
advantages and disadvantages of technology
Advantages and Disadvantages of Technology
Advantages and disadvantages of technology
Investor Presentation Template
Advantages and Disadvantages of Technology
Computer technology power point
Technology Presentation
Technology powerpoint presentations
Ad

Similar to Flex Remoting and Messaging (2010) (20)

PPT
BlazeDS
PPTX
Flex Messeging Services
PPTX
AMF Flash and .NET
PPT
FMS Administration Seminar
PPT
Group20 Dynamic Networks
PPTX
Understanding Web Services by software outsourcing company india
PPT
Intro to web services
PPT
Getting Started with Flex and PHP
PPTX
Soap xp-wg
PPTX
SOA patterns
PPTX
Flex for php developers
PPTX
FMS 3.5
PPT
Websphere - overview and introduction
PPT
soap toolkit
ODP
Ubuntu For Intranet Services
PPTX
BizTalk on App Services
PPT
Flex And Java Integration
PPT
Flex And Java Integration
PPT
Webform Server 351 Architecture and Overview
PPTX
Sap xi online training
BlazeDS
Flex Messeging Services
AMF Flash and .NET
FMS Administration Seminar
Group20 Dynamic Networks
Understanding Web Services by software outsourcing company india
Intro to web services
Getting Started with Flex and PHP
Soap xp-wg
SOA patterns
Flex for php developers
FMS 3.5
Websphere - overview and introduction
soap toolkit
Ubuntu For Intranet Services
BizTalk on App Services
Flex And Java Integration
Flex And Java Integration
Webform Server 351 Architecture and Overview
Sap xi online training

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Approach and Philosophy of On baking technology
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Approach and Philosophy of On baking technology
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
Programs and apps: productivity, graphics, security and other tools
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
sap open course for s4hana steps from ECC to s4
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Empathic Computing: Creating Shared Understanding
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Flex Remoting and Messaging (2010)

  • 1. Integrating Flex using AMFRemoting & Messaging in FlexChristopher Grant - crgrant@gmail.com 1/20/2010
  • 2. AgendaWhat is AMFData Integration Options in FlexCapabilities of AMFWhy it is usefulBenefits of AMFWhere to get itServer Side Options for AMFHow to use itTerminologyConfigurationExamplesSimple RemotingSimple MessagingCustom Objects
  • 4. Data Integration OptionsHyper Text Transfer Protocol – HTTPHTTPServiceSimple Object Access Protocol – SOAPWebServiceAction Message Format – AMFRemotingRemoteObjectMessagingConsumerPublisher
  • 5. AMF CapabilitiesRemoting Services allow your Flex application to directly invoke methods of Java objects deployed in your application server.Message Services provide a publish/subscribe infrastructure that enables your Flex application to publish messages and subscribe to a messaging destination, enabling the development of real-time data push and collaborative applications. 
  • 7. Benefits of AMFBinary transfer is faster than textObjects are very small and are compressed using zlibFast Serialization/ DeserializationDesigned to serialize and deserialize quickly under low memory and slower CPU conditionsAMF data is parsed directly into objects, meaning there is no lag for interpretation or parsingActionScript Object formatSupport for Native Types and Custom classes
  • 9. ServerSide AMF OptionsPHP: Zend, AMFPHP, WebOrb for PHP, SabreAMFJava: BlazeDS*, Red5, GraniteDS*, WebOrb for Java.Net: FluorineFx*, WebOrb* for .Net, AMF.NETPython:PyAMFRuby on Rails: RubyAMF, WebOrb for Ruby on RailsColdFusion: Built in** indicates push / messaging capabilities
  • 10. How do you use it
  • 11. TerminologyChannelProtocol-based conduitsChannel SetsImproves the quality of service in the face of network failures or individual Channel problemsEndpointThe server interface responsible for encoding and decoding data into messagesDestinationClient side reference to resources used for both publish-subscribe and point-to-point messagingPolling vs StreamingPolling opens & closes the connection by messageStreaming keeps the connection open at all times
  • 12. Channels, Set and Endpoints Oh MY!ClientDestinationEndPointChannelStreamingDestinationDestinationEndPointChannelStreamingChannel SetDestinationEndPointChannelPollingDestination
  • 13. ConfigurationCode basedAS and MXMLConfig Filesservices-configToolKitSwiz
  • 14. Config FilesServices-configNeed to tell flex where it isSetup with IDE WizardSetup ManuallyFlex Compiler arguments: -services "C:\....”Pointers to remoting-config.xmlproxy-config.xmlmessaging-config.xmlUsed by Client and Server
  • 15. Config File ExcerptServices-config.xml…<service-include file-path="remoting-config.xml" />…<channel-definition id="channel-amf“ class="mx.messaging.channels.AMFChannel"><endpointurl="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" /></channel-definition>Remoting-config.xml<service id="remoting-service“ class="flex.messaging.services.RemotingService“>…<destination id="HelloWorld"><properties> <source>com.grant.Thing</source> </properties><channels> <channel ref="channel-amf" /> </channels>…</destination>…</service>
  • 16. Simple MXML Excerpt<mx:RemoteObject id=“myRemoteObject" destination="HelloWorld" result="resultHandler(event)" fault="faultHandler(event)" /><mx:Buttonlabel=“SayHello“ click=" myRemoteObject.getOperation(“SayHello”).send();" />private function resultHandler(evt:ResultEvent):void{resultTxt.text= evt.result.toString();}
  • 17. Real ExamplesLet’s look at code already…geez!