Accessibility

Flash Remoting TechNote

Configuring Flash Remoting with JRun 4

In order to take advantage of Macromedia Flash Remoting, you will need to have several items installed in your development environment. This TechNote will outline the requirements for Flash Remoting using JRun 4 and Macromedia Flash MX.

Using Flash Remoting, Macromedia Flash developers can easily access services running on an application server. Flash Remoting allows you to build rich client-side interfaces with Macromedia Flash MX. Once created, these Flash interfaces can be natively integrated into server-side components using JRun, ColdFusion MX, or .NET. Flash Remoting currently includes service adapters for several kinds of Java-based server-side technologies (or services), including: JMX MBeans, JavaBeans, EJBs, and Plain Old Java Objects (POJOs).

How it works

Both Flash UIs and traditional HTML UIs use HTTP to communicate over the Internet. HTML pages usually communicate using the GET and POST HTTP methods. However, Flash communicates with JRun using the Action Message Format (AMF) which is also using the GET and POST HTTP methods. AMF provides a rich interface between JRun and Flash that supports a variety of data types, incremental result sets, and more functionality.

Flash Remoting development requirements

The following items must be installed on the system:

Verifying Flash Remoting Components installation: (client-side)

  1. On your system, locate the:

    {Flash MX install}\Configuration\Include folder.

    If the include folder exists, then the Macromedia Flash Remoting Components are installed.

    The following files should be present:
    ActionScript Description
    NetServices.as Include this class in your ActionScript to connect and talk to the remote services.
    NetDebug.as Include this class in your ActionScript to debug your code.
    NetDebugConfig.as This is a NetDebug helper class.
    NetDebugEvents.as This is a NetDebug helper class.
    NetDebugHelpers.as This is a NetDebug helper class.
    NetDebugImpl.as This is a NetDebug helper class.
    NetDebugLocalConnection.as This is a NetDebug helper class.
    NetDebugNetConnection.as This is a NetDebug helper class.
    DataGlue.as Include this class to format data from a RecordSet.
    RecordSet.as Include this class to work with a RecordSet.
    RsDataProviderClass.as This is a RecordSet helper class.
  2. Open Macromedia Flash MX. Select Windows from the top menu. If NetConnection Debugger appears in the Windows pop-up menu, the Flash Remoting Components are installed.

JRun 4 Requirements: (server-side)

  1. When you install JRun 4, the Flash Gateway will automatically be installed. The default installation location is:

    {JRun4.0 install}\lib\flashgateway.ear

    Since the software is installed at a global level, (containers classpath) all servers will contain the Flash Remoting Gateway.
  2. The samples are automatically installed in the Samples server. The default installation location is:

    {JRun4.0 install}\servers\samples\flashsamples-ear

    To view the samples, navigate to them using the following URL:

    http://localhost:8200/flash/

    Note: If the URL listed above doesn't work, verify that the Sample server is running and using port 8200.

Last updated: June 24, 2002
Created: May 24, 2002
ID: 16357
Product: Flash Remoting
Versions: All
OS: All
Browser: All
Server: None
Database: None
Former ID: N/A
 

Provide Feedback

less more

1

2

3

4

5

(300 characters or less - you will not receive a reply.)