44 Pages
English

Lcds data management for mere mortals

Gain access to the library to view online
Learn more

Informations

Published by
Reads 650
Language English
Document size 5 MB
LCDS Data Management for Mere Mortals Steven Erat Software Engineer Webapper Services, LLC serat@webapper.com http://www.webapper.com/.seefusion.com/ Tuesday, November 24, 2009 History of LCDS Flex 1.0 (includes the SDK and Server) – Released March 2004 Flex 1.5  – Released Nov 2004 FDS (Flex Data Services) was decoupled from the Flex SDK in Flex 2.0 – Released 2006 FDS was renamed LiveCycle Data Services – released as LC DS 2.5 in summer 2007 LCDS 2.5.1 in fall 2007 An open source version of remoting and messaging was released as Blaze DS in early 2008 LCDS 2.6 was released in mid 2008 LCDS 2.6.1 was released in Nov 2008 source: http://anilchannappa.org/2008/11/26/history-flex-lc-ds-fds-and-blazeds/ ColdFusion MX 7.02 first integrated with Flex Data Services (mid 2006) ColdFusion 8.0 tightly integrated LCDS Express Edition (install option) (mid 2007) ColdFusion 9.0 de-integrated LCDS (late RIA Unleashed - 2009) - Download “LCDS Components” and LCDS 2.6.1 for manual installation Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 Demo: Contact Manager Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 LCDS Features Messaging mx:Producer, mx:Consumer• “pub / sub”• RPC Services mx:HTTPService, mx:WebService, mx:RemoteObject• Proxy, white list, client authentication• Data Management mx:DataService• Data Synchronization• Conflict Resolution• Pagination • Offline data persistence support (AIR)• Channels: AMF; RTMP (Streaming Protocol)• Enterprise Support from Adobe Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 BlazeDS Features Messaging mx:Producer, mx:Consumer• “pub / sub”• RPC Services mx:HTTPService, mx:WebService, mx:RemoteObject• Proxy, white list, client authentication• Data Management mx:DataService• Data Synchronization• Conflict Resolution• Pagination • Offline data persistence support (AIR)• Channels: AMF; RTMP (Streaming Protocol)• Enterprise Support from Adobe Open Source Free AMF, HTTP channels (no RTMP) Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 LCDS Editions BlazeDS Open source and free• Provides Messaging and RPC services• AMF and HTTP channels, but not RTMP • Hundreds of clients per cpu• No support from Adobe• LCDS Community Edition Exactly the same as BlazeDS but with Adobe support• LCDS Single CPU Edition (Express Edition) Free• Messaging, RPC, and Data Management• AMF, HTTP, and RTMP channels• Thousands per CPU with RTMP (MessageBroker) / Java NIO• Shipped in CF8; Free to manually integrate/use with CF9• LiveCycle DataServices ES2 ~$40,000 (min 2cpu @ $20k/cpu)• Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 LCDS Architecture Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 Advantages of Using LCDS with ColdFusion You already know ColdFusion, right ?!!• Integrates into same JVM (ColdFusion 8, 9) Faster than connecting CF to LCDS over RMI• ColdFusion DataServices Adapter Translates ColdFusion objects to ActionScript objects (& vice versa)• ColdFusion Data Management Event Gateway (ColdFusion 8, 9) Modify data in ColdFusion, notifies LCDS of changes, LCDS notifies connected clients• ColdFusion CFC Wizard in Flex Builder Extension for Flex Builder 3• Generates the required CFCs: Assembler, DAO, VO• Generates the ActionScript VO• Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 CF8: Integrated LCDS Installer Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009 CF9: Manual LCDS Integration Due to ColdFusion 9’s “Enhanced Flash Remoting”, LCDS not an install option Download “LiveCycle Data Services 2.6.1 Components” & LCDS DataServices ES2 Follow instructions in the README ******************************************************************** INSTRUCTIONS FOR MANUAL INTEGRATION OF LCDS 2.6.1 WITH COLDFUSION 9 To be able to use LiveCycle Data Services ES 2.6.1 with ColdFusion 9, you need to manually integrate it with ColdFusion installation. Note: The following instructions use the term lcds_install_root to refer to the installated home directory for LiveCycle Data Services ES 2.6.1. 1) Shutdown your ColdFusion 9 server if its running. 2) Copy the ColdFusion9/lib/flex-messaging*.jar files to a backup location. If you are running a multiserver instance or a J2EE installation, these files are in the WEB-INF/cfusion/lib directory. 3) Copy the lcds_install_root/resources/lib/flex-messaging*.jar files and overwrite them into the ColdFusion /lib directory. 4) Copy "LCDS2.6.1_for_CF9/WEB-INF/flex/jars/cfdataservicesadapter.jar" to ColdFusion WEB-INF/flex/jars. 5) Also Copy the following SWC libraries from lcds_install_root/resources/frameworks to the CF9 directory: ï /libs/fds.swc file to the /WEB-INF/flex/libs directory ï /libs/player/playerfds.swc file to the /WEB-INF/flex/libs/player/ directory ï /locale/en_US/fds_rb.swc file over the /WEB-INF/flex/locale/en_US/ directory Old Style(CF8 style) Flash Remoting steps ========================================= 6) Copy your CF8 WEB-INF/flex/ *.xml config files to ColdFusion 9 WEB-INF/flex/ folder 7) Start ColdFusion server. Enhanced Flash Remoting of CF9 steps ==================================== 6) copy *.xml files from LCDS2.6.1_for_CF9/WEB-INF/flex directory to ColdFusion 9 WEB-INF/flex/. 7) If your LiveCycle Data Services applications use RTMP channel, open the ColdFusion WEB-INF/flex/services-config.xml file and uncomment "cf-rtmp" channel. By default it is commented. 8) If your old Channels( in service-config.xml) has the present under xml tag, then either remove , or set it to true. Also set the to False. 9) Add your data management destinations from the old file to the new data-management-config.xml file. In ColdFusion 9 release, there are few changes in the destination and channel structure due to changes in the serialization process. The following properties have been moved from destination to channel level. You need to move these properties under --> --> from your For details, see "Changes in the XML configuration files for New Flash Remoting" in ColdFusion 9 Documentation. 10) Deploy your LCDS/Flex applications after recompiling them using new *-config.xml files, which has above mentioned changes 11) Start ColdFusion server. Steven Erat - LiveCycle DataServices for Mere Mortals - RIA Unleashed - 2009 Tuesday, November 24, 2009
)