|
WebLogic Server 6.1 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 directoryapplications 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. antbdmconfig.xml file with information specific to your installation: bdmconfig.xml file using the WTCValidateCF utility:java weblogic.wtc.gwt.WTCValidateCF bdmconfig.xmlsimpconv directorywtc_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.bdmconfig.xml file you are using for the example. weblogic.wtc.gwt.WTCStartupBDMCONFIG=path_name_of_your_bdmconfig.xml_fileweblogic.wtc.gwt.WTCShutdownconvsimp directoryrun.cmd asdfrun.sh asdfrun asdfThe Tuxedo service replies to your WLS application with:
Beginning statefulSession.Client...
Creating TuxedoConversation
datasize: 1 iterations: 1
End statefulSession.Client...
simpapp example, use the WTC tracing feature. Add the TraceLevel parameter to the StartUp Class Argument list. BDMCONFIG=path_to_my_bdmconfig.xml_file,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/docs61 |
|||||