Figure 5-1 demonstrates one scenario in which a Dynamo client connects to EAServer to process a Dynamo script, which contains a Methods As Stored Procedures (MASP) call to an EAServer component.
Figure 5-1: EAServer and Dynamo
These steps correspond to the numbers in the diagram:
A browser requests a Web page. The Web page is a Dynamo script that contains HTML, SQL queries and a MASP call to an EAServer component in that order.
The Web server passes the request to Dynamo.
The script is retrieved from the Web site (not shown in the diagram). Processing of the script begins. The HTML and SQL queries within the Dynamo script are processed.
An ODBC or Open Client connection is made to a database to retrieve the necessary information for the SQL query.
The data is returned to Dynamo. Processing of the script continues until the EAServer component call is encountered.
Because a MASP call is being made, an ODBC or Open Client connection is made to access the EAServer component and the called method.
The component method is executed. If the method requires database access, a connection is made to a database to retrieve the appropriate data.
The data is returned to EAServer through an ODBC, Open Client, or JDBC connection.
The results from the EAServer function are returned to Dynamo through an ODBC or Open Client connection.
Dynamo passes the results, in HTML format, back to the Web server.
The results are passed back to the client through an HTTP connection.
EAServer and Dynamo can access several different databases; this diagram displays only one database.
EAServer components can access data from many different types of databases; you do not need a Sybase database to store data.
The client, Dynamo, and EAServer can all reside on either one machine or on separate machines.
A Web author can embed calls to EAServer components within a Dynamo script or template. The Dynamo script executes in the regular manner until it encounters the call to the EAServer component. At this point, a connection (through Dynamo) is made to EAServer, the appropriate method is executed, and the results are returned to Dynamo. Dynamo processes the information and returns HTML to the client.
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |