Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / LiveCycle Developer Center /

Creating live stock quote sample applications using the Message service

by Scott Macdonald

Scott Macdonald

Created

8 November 2010

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
data services LiveCycle

Requirements

Prerequisite knowledge

This tutorial assumes that you have a solid understanding of the Java programming language as well as ActionScript. You should also be familiar with LiveCycle Data Services.

User level

Intermediate

Required products

  • LiveCycle Data Services

You can programmatically create a Rich Internet Application (RIA) that displays stock data by using LiveCycle Data Services. You use the Flex client-side API to create the client application. You use the Java API to create server-side classes that retrieve financial data from a content provider and sends messages to a destination. When the client application detects new messages, the application is updated in real time with financial data. For example, assume that the client application tracks Adobe stock. When the server retrieves updated data from the financial content provider, it creates an updated message and pushes the message to the destination. The client application detects the new message and displays changes to the stock price.

The following illustration shows the stock quote application that is created in this tutorial (see Figure 1).

The stock quote application.
Figure 1. The stock quote application.

The stock quote application displays data related to the stock symbol that a user entered. In the previous illustration, notice that the Adobe stock price is displayed. This application displays the following data:

  • The first section displays current stock activity within a data grid control. The data grid control displays information such as the stock name, its symbol, the change in the price, and so on.
  • The second section displays daily stock activity within a line chart control. As a stock price either moves up or down, the activity is plotted within this control. The user can modify the zoom perspective by adjusting the slider control.
  • The third section displays stock history information within an area chart control. The user can view different ranges by clicking different time range buttons. For example, the user can view the stock activity over the past year by clicking the 1y button.

LiveCycle Data Services is used to retrieve all financial data that is displayed within this client application. The following illustration shows LiveCycle Data Services retrieving financial data from a third party financial content provider (see Figure 2).

LiveCycle Data Services retrieves financial data from a third party financial content provider.
Figure 2. LiveCycle Data Services retrieves financial data from a third party financial content provider.

LiveCycle Data Services retrieves stock data from the content provider by using a Java API. As the server receives stock data, it creates messages and sends the messages to a destination. A client application written using Flash Builder can receive messages from a destination and display message data. In this workflow, LiveCycle Data Services is a message producer and the client applications are message consumers.

Read the complete tutorial (PDF, 245 KB)

Special thanks to Mattieu Gamache-Asselin. Mat's development efforts played an important part of this development article. Mat is a co-op student currently attending the University of Ottawa working on a computer science degree.

Where to go from here

For more information about creating Data Management applications, see the Using Adobe LiveCycle Data Services ES2 Guide.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

More Like This

  • Using the data management services in LiveCycle Data Services ES
  • Externalizing service configuration for BlazeDS and LiveCycle Data Services ES
  • What's new in Adobe LiveCycle Data Services ES2 (3.0)
  • Creating data management applications by manually creating Java server-side classes
  • Setting up model-driven development with LiveCycle Data Services ES2
  • BlazeDS 30-minute test drive
  • LiveCycle Data Services ES2 (3.0) videos

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement