Presentation is loading. Please wait.

Presentation is loading. Please wait.

June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should.

Similar presentations


Presentation on theme: "June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should."— Presentation transcript:

1 June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services ThomasB@UniversalMind.com “With ColdFusion, why should I care about FDS?”

2 June 28 th – July 1 st 2006 Flex Data Services (FDS) Flex 2 Data Services (FDS)  What is FDS?  Why use FDS?  Show me how…

3 June 28 th – July 1 st 2006 What is FDS? Flex 2 Data Services (FDS) RPC ServicesData Services Message Service Flex 2 Framework MXMLActionScript Flex Class Library Flash VM AS2AS3 FlexBuilder Flex 2.0 Technology Stack

4 June 28 th – July 1 st 2006 FlexBuilder Flex 2 Flash Player Flash VM AS2AS3 Distributed FreeDistributed Free Upgrades AutomaticallyUpgrades Automatically Version DetectionVersion Detection Downloaded from AdobeDownloaded from Adobe

5 June 28 th – July 1 st 2006 Flex IDE Flex Framework MXMLActionScript Flex Class Library FlexBuilder (Eclipse) FlexBuilder (Eclipse) Developer tool costs < $600 Includes source codeDeveloper tool costs < $600 Includes source code Does not support Flex 1.5Does not support Flex 1.5 No J2EE Server requiredNo J2EE Server required No Distribution licenses of SWFsNo Distribution licenses of SWFs

6 June 28 th – July 1 st 2006 Flex 2.0 Server Components Flex 2 Enterprise Services RPC ServicesData Services Message Service FlexBuilder CPU-based Server CostsCPU-based Server Costs Leverage Java Messaging System (JMS)Leverage Java Messaging System (JMS) Used with J2EE servers;Used with J2EE servers; JRun, ColdFusion, WebLogic, Websphere Requires CPU-based licensingRequires CPU-based licensing

7 June 28 th – July 1 st 2006 Why use FDS?  Server-side Security  Performance & Functional Testing  Client Synchronization  Collaboration  Large volumes of data with paging  Data-Push Features  Real-time data delivery (e.g. medical, investment, decision support systems, etc) Flex Data Services RPC ServicesData Services Message Service

8 June 28 th – July 1 st 2006 Flex 2.0 RPC Services FDS JSP/Servlet (XML) HttpService (XML) WebService(SOAP) RemoteObject(Java) Web Svc (SOAP) JAVA (EJB/POJO) HTTP SOAP EJB HTTPService, SOAP, & RemoteObject(CFC) is FREE in Coldfusion 7.x… FDS2 is not req.HTTPService, SOAP, & RemoteObject(CFC) is FREE in Coldfusion 7.x… FDS2 is not req. FDS 2.0 is required for RemoteObject(Java) featurescFDS 2.0 is required for RemoteObject(Java) featuresc ColdFusion/J2EE Server HttpService (XML) WebService(SOAP) CFC RemoteObject

9 June 28 th – July 1 st 2006 Flex 2.0 Message Services (Publish & Subscribe) FDS JSP/Servlet (XML) HttpService (XML) WebService(SOAP) RemoteObject(Java) Web Svc (SOAP) JAVA (EJB/POJO) HTTP SOAP EJB ColdFusion/J2EE Server Messaging Services Adapter API Java Message Service (JMS) MQSeries Tibco Others

10 June 28 th – July 1 st 2006 Messaging with ColdFusion & Flex Other Gateways Flex Messaging Event Gateway ColdFusion 7.x Enterprise Server 1 FDS Messaging Services ColdFusion Event Gateway Adapter ColdFusion 7.x Enterprise With FDS2 Server 2 HTML App Flex App RMI See notes!

11 June 28 th – July 1 st 2006 Flex & Coldfusion Flex Data Services Coldfusion Server (7.x or higher) Web Browser HTML XML CFM CFC Event Gateway Flex SWF(s) Java Remoting ( via AMF ) WebServices XML Proxies XMLWebServices CFC Remoting See notes!

12 June 28 th – July 1 st 2006 Object Adapter Adapter API Flex 2 Data Services: Real-Time Data Sharing (via RTMP or HTTP) FDS JSP/Servlet (XML) HttpService (XML) WebService(SOAP) RemoteObject(Java) Web Svc (SOAP) JAVA (EJB/POJO) HTTP SOAP EJB Messaging Services Adapter API Java Message Service (JMS) MQSeries Tibco Others O-R Adapter JDBC Adapter DAO Data Synch Services RDMS Oracle, Sybase, DB2 SQLServer ColdFusion/J2EE Server RPC RTMP/HTTP

13 June 28 th – July 1 st 2006 Local Persistence Service  Allows offline data access  Provides common API for creating, reading, updating, and deleting local data  Adapters are used for different types of local data storage devices  Local Shared Objects adapter is available in Flex 2.0… FDS is not required  Offline data synchronization supported through combination of local persistence and messaging services… FDS is required! LSO Adapter Local Persistence Service

14 June 28 th – July 1 st 2006 Show me how…  Using C-FDS for: High-performance, SECURE access to CFCs with native data results Coldfusion application  Flex application messaging Note: Mike Nimer’s presentation will show CFC Actionscript native translations during data marshalling  Using FDS for: Proxy security & framework for access to distributed data systems. Coldfusion application  Flex application 2-way messaging Paging large volumes of data Real-time Data Sharing Messaging for Dashboard features Introduce Flex 2 Actionscript components for FDS and show source examples: See notes!

15 June 28 th – July 1 st 2006 Using CFCs with C-FDS <mx:RemoteObject id="myCfc" destination="ColdFusion" source="myApplication.components.User“ result="my_CFC_handler(event)" /> a) Modify /WEB-INF/flex/services-config.xml to add a “named” destination 1)Specify in.mxml file a CFC component with its FULL class path… this may be a security concern! 2)Modify FDS configuration file to specify an private, custom ID for the desired classpath. Use this ID in the Flex code… SECURE and PRIVATE. b) <mx:RemoteObject id=" myCfc " destination="CustomID" result="my_CFC_handler(event)“ /> See code samples…

16 June 28 th – July 1 st 2006 FDS for Data Sharing 1)User is ordering online and is submitting an invalid credit card for his order. 2)Instead of get some abstract error… an online representative “pops-up” asking if the buyer needs help. 3)The buyer says yes and describes the problem. 4)The rep fixes the fields REMOTELY and submits the buyers form REMOTELY. 5)The buyer receives confirmation 6)The rep thanks the buyer and logs-off. See code and demo… Real-time, 2-way data sharing (e.g. medical insurance forms, decision support systems, etc)… Let’s review a Flex application to allow online support to help with credit card problems on a visitors form. Scenario:

17 June 28 th – July 1 st 2006 FDS for Dashboards 1)UserA is ordering online orders several products. UserA submits order. 2)UserB is ordering online with several products. UserB submits order. 3)Etc. 4)Each time an order is submitted the dashboard AUTOMATICALLY adjusts its charts/graphs of gross sales and available inventory. See code and demo… Real-time, data aggregation (e.g. medical, decision support systems, etc)… Let’s review an application to allow multiple online buyers to submit orders that update sales and inventory dashboard. Scenario:

18 June 28 th – July 1 st 2006 Use FDS 2 with ColdFusion  Server-side Security  Performance & Functional Testing  Collaboration  Large volumes of data with paging  Data-Push Features  Client Synchronization  Real-time data delivery (e.g. medical, investment, decision support systems, etc) Flex Data Services RPC ServicesData Services Message Service


Download ppt "June 28 th – July 1 st 2006 Thomas Burleson Principal Architect Understanding Flex 2 Data Services “With ColdFusion, why should."

Similar presentations


Ads by Google