|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
See:
Description
| Interface Summary | |
| ToupperCorba | The methods in this interface are the public face of the simpapp client. |
| ToupperCorbaHome | This interface is the home interface for the ToupperCorbaBean.java, which in WebLogic is implemented by the code-generated container class ToupperCorbaBeanC. |
| Class Summary | |
| Client | This class illustrates calling a stateful SessionBean and performing the following exercises: Create a ToupperCorba Convert a string using ToupperCorba Remove the ToupperCorba |
| ToupperCorbaBean | ToupperCorbaBean is a stateful SessionBean. |
This example demonstrates the ability to use WTC to allow Tuxedo or WLS clients to run CORBA applications.
The simpappcns example takes the Tuxedo 8.0 CORBA cnssimpapp application
and extends it to run over domains, such that the clients for the
to_upper method can either run on Tuxedo or on WLS.
This example uses two domains:
Error connecting to Tuxedo Domain, consider using a machine with
an Ethernet adapter having a single address.
cnssimpapp example. Copy the TUXEDO CORBA cnssimpapp example from
your Tuxedo installation and place it in your working cnssimpapp directory. Make sure the qualified path name and file name
for the tuxconfig file contains less that 64 characters.
%TUXDIR%\bin
setEnv.cmd located at %TUXDIR%. Unix users modify the tux.env file located at $TUXDIR.
NT/2000 users enter the following command: nmake -f makefile.nt allUnix users enter the following command: nmake -f makefile.mk all
ubbdomain and dom1config from the WL_HOME/samples/server/src/examples/wtc/corba/simpappcns directory.
Paste them into your working cnssimpapp directory.
ubbdomain 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="my_apps/cnssimpapp"
dom1config for your Tuxedo environment. This includes creating log devices and updating the network addresses.
DMTLOGDEV="d:\my_apps\cnssimpapp\DMTLOG"TDOM1 NWADDR="//Machine:1234"
ubbdomain file
tmloadcf -y ubbdomain
dom1config file
set BDMCONFIG=my_apps\cnssimpapp\bdmconfigdmloadcf -y dom1config
tmboot -y
simple_client -ORBid BEA_IIOPString? hello worldHELLO WORLDhello world
Error connecting to Tuxedo Domainsimpappcns directory
applications directory in your WLS domain
build
setExamplesEnv.cmd. Unix users copy ./config/examples/setExamplesEnv.sh script to your
WTC simpappcns directory, then modify and run the setExamplesEnv.sh script.
wtc_toupper_corba.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.wtc_toupper_corba.jar is deployed. Use the WLS console or
check the config.xml file. Manually deploy the EJB if needed.
From the WTC simpappcns directory, start a client
run.cmd HereIsAStringrun.sh HereIsAStringThe service returns the following:
Beginning statefulSession.Client...
- Creating ToupperCorba
- converting HereIsAString
- converted to: HEREISASTRING
- End statefulSession.Client...
simpappcns example, use the WTC tracing feature. Add the TraceLevel attribute to your startWebLogic script.
-Dweblogic.wtc.TraceLevel=100000A TraceLevel of 100000 traces all of the calls to the Tuxedo object in the client.
For more information about WebLogic Server WebLogic Tuxedo Connector, see:
|
Documentation is available at http://e-docs.bea.com/wls/docs70 |
|||||