This section describes how to modify the above example to support container-managed transactions. In this modified example, TIBCO Enterprise Message Service server participates in a distributed transaction started by WebLogic server.
1. Start the TIBCO Enterprise Message Service administration tool by selecting Start > Programs > TIBCO EMS 6.0 > Start EMS Administration Tool from the Windows Start menu.To modify the example MDB to use transactions, you must update the ForeignJmsProvider and MessageDriven annotation tags in the MessageTraderBean.java file, which is located in:WebLogicHome\samples\server\examples\src\examples\ejb\ejb20\message
1. For the ForeignJmsProvider tag, make these changes:
a.
b.
2. For the MessageDriven tag, make these changes:
a.
b. After competing the modifications, the foreignJmsProvider and MessageDriven tags should look like this:The modifications necessary for the example client program are similar to those that were necessary for MDB:
1.
2.
3. Restart the WebLogic Server Examples Server as described Rebuilding and Redeploying the Example MDB, so that it picks up the changes to the environment.Create a new command prompt window and run the examples setup script, setExamplesEnv.cmd, so that the changes to the environment are picked up.You should see the same messages sent by the client and received by the MDB in the WebLogic server window.
Copyright © TIBCO Software Inc. All Rights Reserved.