BEA Home | Events | Solutions | Partners | Products | Services | Download | Developer Center | WebSUPPORT
| WebLogic Server Doc Home | Programming WebLogic JTA | Previous Topic | Next Topic | Contents | Index | View as PDF

Transactions in RMI Applications

The following sections provide guidelines and additional references for using transactions in RMI applications that run under BEA WebLogic Server:

- Before You Begin

- General Guidelines

Before You Begin

Before you begin, read Introducing Transactions, particularly the following topics:

- Introducing Transactions in WebLogic Server RMI Applications

- Transactions Sample RMI Code

For more information about RMI applications, see Programming WebLogic RMI and RMI/IIOP.

General Guidelines

The following general guidelines apply when implementing transactions in RMI applications for WebLogic Server:

- WebLogic Server allows for flat transactions only. Transactions cannot be nested.

- Use standard programming techniques to optimize transaction processing. For example, properly demarcate transaction boundaries and complete transactions quickly.

- For RMI applications, callback objects are not recommended for use in transactions because they are not subject to WebLogic Server administration. For more information about callback objects, see Programming WebLogic RMI and RMI/IIOP.

- In RMI applications, an RMI client can initiate a transaction, but all transaction processing must occur on server objects or remote objects hosted by WebLogic Server. Remote objects hosted on a client JVM cannot participate in the transaction processing.

  As a work-around, you can suspend the transaction before making a call to a remote object on a client JVM, and then resume the transaction after the remote operation returns.

For general guidelines about the WebLogic Server Transaction Service, see Capabilities and Limitations.

Copyright © 2001 BEA Systems, Inc. All rights reserved. Required browser: Netscape 4.0 or higher, or Microsoft Internet Explorer 4.0 or higher.