|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
See:
Description
| Interface Summary | |
| TuxedoConversation | The methods in this interface are the public face of the simpapp client. |
| TuxedoConversationHome | This interface is the home interface for the TraderBean.java, which in WebLogic is implemented by the code-generated container class TraderBeanC. |
| Class Summary | |
| Client | This class illustrates calling a stateful SessionBean and performing the following exercises: Create a TuxedoConversation Buy some shares using the TuxedoConversation Sell some shares using the TuxedoConversation Remove the TuxedoConversation |
| TuxedoConversationBean | ToupperBean is a stateful SessionBean. |
This example demonstrates the ability of WebLogic Tuxedo Connector to allow WebLogic Server to interoperate with Tuxedo using conversations.
set PATH to check the status and add the path if necessary.
convsimp directory.
d:\my_apps\convsimpconvsimp directory.
ubbdomain
dom1config
convcl.c
convsimp.c
convsimp directory
%TUXDIR%\bin
setEnv.cmd located at %TUXDIR%. Unix users modify the tux.env file located at $TUXDIR.
buildclient -o convcl -f convcl.cbuildserver -o convsimp -f convsimp.c -s CTOUPPERubbdomain for your Tuxedo environment. This includes setting the pathnames for APPDIR, TUXCONFIG, and TUXDIR and setting the machine name.
Replace all <bracked> items with information for your environment.
APPDIR="d:\my_apps\convsimp"ubbdomain file
tmloadcf -y ubbdomaindom1config for your Tuxedo environment. This includes creating log devices and updating the network addresses.
DMTLOGDEV="d:\my_apps\tlog"TDOM1 NWADDR="//TuxedoMachine:1234"dom1config file
set BDMCONFIG=d:\my_apps\convsimp\bdmconfigdmloadcf -y dom1configtmboot -ytmadmin psc command.The following domain processes should have booted:
DMADM, GWADM, and GWTDOMAINCTOUPPER serviceconvsimp directory
applications directory in your WLS domain
build
setExamplesEnv.cmd. Unix users copy ./config/examples/setExamplesEnv.sh script to your WTC simpapp directory, then modify and run the setExamplesEnv.sh script.
wtc_tux_Conversations.jar file using ant.
antsetWTCMbeans file with information specific to your installation.
setWTCMbeans.cmd file. Unix users modify the setWTCMbeans.sh file.user and passwd for your environmentsetWTCMbeans file to configure your installation.
setWTCMbeans.cmd file.setWTCMbeans.sh file.simpconv directory
wtc_tux_server_Conversations.jar file using ant.
antwtc_tux_Conversations.jar and wtc_tux_server_Conversations.jar are deployed. Use the WLS console or
check the config.xml file. Manually deploy the EJBs if needed.
convsimp directory
run.cmd hellorun.sh hello
run helloThe Tuxedo service replies to your WLS application with:
Beginning statefulSession.Client...
Creating TuxedoConversation
datasize: 1 iterations: 1
End statefulSession.Client...Your WebLogic Server display the following:
setSessionContext called
ejbCreate called
conversation called, datasize:1 iterations: 1
cpcf get sources: jndi.properties
About to start convesation
tpconnect successfull!
first send successful!
first receive successful!
second send successful!
second receive successful!
simpapp example, use the WTC tracing feature. Add the TraceLevel attribute to your startWebLogic script.
-Dweblogic.wtc.TraceLevel=20000A TraceLevel of 20000 traces all of the calls to the Tuxedo object in the client.
You are ready to run the simpconv example.
For more information about WebLogic Server WebLogic Tuxedo Connector, see:
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||