Posts in Category "Data Services"

Creating web applications using HTML5/JavaScript Remoting Client SDK with LiveCycle Data Services

Harpreet Singh, Technical Support @ Adobe

LiveCycle Data Services 4.6 provides a HTML5/JavaScript library that lets you develop client applications that call remoting destinations in Data Services using plain HTML and JavaScript with no Adobe Flash involved.

You can use the JavaScript APIs that do not require compilation against services-config.xml. Remoting only needs destination-to-channel mapping, and the channel information (URL, ID) from services-config.xml. Therefore, instead of compiling against the services-config.xml, you create your own ChannelSet, and assign a component (RemoteObject) before using the component. Alternatively, if your browser supports the HTML5 WebSockets, you can use a WebSocket channel, instead of a RTMP channel in Flash, for real-time communication.

  1. Set up the channel(s).
    var channel = new flex.client.channels.Channel("my-amf","http://localhost:8400/RemotingHtmlLcdsApp/messagebroker/amf");
    var amfChannel = new flex.client.channels.Channel("my-nio-amf","http://localhost:2080/nioamf","flex.client.channels.Channel.HttpMode.REGULAR");
    var wsChannel = new flex.client.channels.Channel("my-nio-amf-websocket","ws://localhost:2080/nioamfwebsocket");
  2. Create a channel set.
    var channelSet = new flex.client.channels.ChannelSet([ channel,amfChannel ]);
  3. Create and initialize a RemoteObject with channelSet and destinationId.
    var remoteObject = new flex.client.rpc.remoting.RemoteObject("EchoService");
  4. Add the result and fault handlers for the remoteObject.
    remoteObject.addEventListener(, function(resultEvent) {
    result = resultEvent.getResult();
    remoteObject.addEventListener(, function(faultEvent) {
    var fault = faultEvent.getFaultString();
  5. Make the remoting call and call the disconnect on remoteObject.

Download the sample code from here. Access the JavaScript reference here.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 5.8/10 (6 votes cast)

LiveCycle Data Services ES2 Tutorial

The new Create a LiveCycle Data Services ES2 Application tutorial steps you through the development of a FlashBuilder application that uses Data Services ES2 and a back-end database to manage run-time data. Based on the Data Services Engineering Support Center Application sample, the tutorial focuses on the key features and development concepts that are critical for effectively developing Data Services ES2 applications:

  • Setting up your development environment.
  • Creating a data model that generates services for managing run-time data.
  • Developing the client application using FlashBuilder:
    • Extending the client-side service wrapper classes
    • Binding mxml data components to service operations to display data
    • Creating filters that perform custom database queries
    • Customize and generate model-driven forms for interacting with data
  • Customizing server behavior:
    • Integrating Spring Security
    • Customizing the Java assembler classes
    • Overriding CRUD methods
  • Deploying the application:
    • Configuring Tomcat and the database
    • Building the application using Ant
    • Deploying the application to Tomcat

The Create a Data Services Application tutorial is designed with both beginner and intermediate Data Services developers in mind. The tutorial is organized in modules that together describe the end-to-end application development process, but also stand completely independent of each other:

  • Beginners can complete each module of the tutorial to learn the end-to-end process for creating a Data Services application.
  • Intermediate users can pick and choose which modules they want to complete. Each module focuses on a different stage of application development.

The tutorial is provided in both HTML and PDF. You can use the HTML pages to leave comments about your experience using the tutorial. We are always anxious to receive your feedback.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

Generate Model Classes Using Ant

You can use Ant to generate ActionScript and Java classes from your FlashBuilder and LiveCycle Workbench ES2 models. All you need is a model (.fml) file (obviously), Ant (obviously), some jar files in your classpath (provided with LiveCycle Data Services ES2 and LiveCycle Workbench ES2), and the documentation for the Ant commands.

What documentation, you ask? You won’t find it in the core Data Services ES2 documentation, but Matt Butler put together a tidy reference in his blog. He explains how to extract the required libraries as well.

(Thanks Matt)

Product documentation is here.

Have fun generating those oh-so-useful service classes in your builds!

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

How to create a Data Services ES2 application by manually creating Java server-side classes

Did you know that you can use LiveCycle Data Services ES2 to manage data located in a relational database? That’s right, using Data Services ES2, you can automate data synchronization between an Adobe Flex client application and a middle tier. As part of creating a Data Services ES2 application, you can create server-side classes that contain Java DAO application logic. If you are wondering how to do this, check out the Creating data management applications by manually creating Java server-side classes article.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)