Contents Index Configuring EAServer Deploying Databases and Applications

ASA Programming Guide
  Three-Tier Computing and Distributed Transactions
    Using EAServer with Adaptive Server Anywhere

Setting the component transaction attribute


In EAServer you may implement a component that carries out operations on more than one database. You assign a transaction attribute to this component that defines how it participates in transactions. The transaction attribute can have the following values:

For example, in the Sybase Virtual University sample application, included with EAServer as the SVU package, the SVUEnrollment component enroll() method carries out two separate operations (reserves a seat in a course, bills the student for the course). These two operations need to be treated as a single transaction.

Microsoft Transaction Server provides the same set of attribute values.

To set the transaction attribute of a component

  1. In Jaguar Manager, locate the component.

    To find the SVUEnrollment component in the Jaguar sample application, connect to the Jaguar server, open the Packages folder, and open the SVU package. The components in the package are listed in the right pane.

  2. Set the transaction attribute for the desired component.

    Right click the component, and select Component Properties from the popup menu. Click the Transaction tab, and choose the transaction attribute value from the list. Click OK to complete the operation.

    The SVUEnrollment component is already marked as Requires Transaction.

Once the component transaction attribute is set, you can carry out Adaptive Server Anywhere operations from that component, and be assured of transaction processing at the level you have specified.


Contents Index Configuring EAServer Deploying Databases and Applications