Download Oracle Application Server Wireless Developer`s Guide

Transcript
Building Async Applications
Corporation (orcl is the stock ticker symbol for Oracle Corporation). A string (tw), can
be created as the alias for a string value, traffic ny;weather ny, so two applications,
traffic and weather, can be invoked by inputting two characters.
10.3.7 Application Invocation Examples
This section provides examples on how to invoke applications.
10.3.7.1 Invoking the Application by the Application Short Name
All Async-enabled applications should be assigned short names to enable end user
access. The short name should uniquely identify an application on the entire site. To
invoke an application, a message is sent to a site access point, such as
[email protected], to which the Async Listener is configured to listen. The
command line has the format:
<Svc Short Name> <parm1> <parm2> . . .
In the following example, a message is sent to the site access point:
[email protected], to invoke a stock quote application with the short name, st. The
application requires a stock symbol as its parameter (for this example, it is ORCL).
Figure 10–5 Invoking by Service Short Name
10.3.7.2 Invocation through Application-Associated Access Point
Each application may have application access points associated with it. For example,
an E-mail address, [email protected], can be used to identify a stock application.
Since the application has been identified in the destination address of the request
message, there is no need to specify the application short name in the command line.
Only the application parameters, such as the stock symbol, are required in the
command line.
All of the system commands (for example, help) can still be issued to the
application-associated access point. The Async Listener interprets them in the same
way they are sent to the site access point.
Figure 10–6 Invoking by Service-Associated Access Point
10.3.7.3 Menu Capability
Features are presented similar to the HTTP model. An application invocation may
trigger the return of a message with the menu. Each menu item is prefixed with a
number. Users are able to make selections by issuing another message whose content
contains the menu item number. This extends the application capability and enables
improved user interaction. A yellow pages application having a short name of yp
expects two user parameters: category and area. Users invoke applications by
providing the values, for example, burger and home (a landmark for the user). The
application searches for all the hamburger restaurants in the home area. A returned
Creating Messaging Applications
10-25