![]() |
![]() |
|
|
About the Servlet with JavaBean Example
This example demonstrates an Enterprise JavaBean (EJBean), and provides an example of a simple interface for accessing the Tuxedo Server. You can find the source code for this example in the /samples/jolt/wls/ejb/bankapp directory included in the BEA Tuxedo distribution.
Running this example before attempting to create your own EJBeans will show you the different steps involved. The example is a stateful session EJBean called TellerBean that contacts a Tuxedo Server using Jolt for WebLogic, and conducts transactions as follows:
The client browser application performs these steps:
Note: In Transaction 1, a single call is made, and is automatically committed. In Transaction 2, a begin() and commit() bracket two separate requests (a deposit and a withdrawal).
You can see in Transaction 2 how the balance is successfully rolled back to what it was at the end of Transaction 1.
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|