|
|
| WebLogic Server 7.0 Code Examples, BEA Systems, Inc. |
Package examples.iiop.ejb.entity.tuxclient
This directory contains the tuxedo client which can be used to call an entity session bean from WebLogic. You must have the latest
version of Tuxedo 8.0 for the client to perform correctly. This example demonstrates passing more complex valuetypes than the stateless session bean RMI-IIOP examples.
The source code for all the RMI-IIOP examples is in your WL_HOME\samples\server\src\examples\iiop directory.
Before you run the client applications in this directory, be sure
to build the whole example.
Build and deploy the entity bean on WebLogic Server first. The following link will take you through the necessary steps:
iiop.ejb.entity.server.wls
Be sure to also take a careful look at the Tuxedo client code to see what's going on.
- Set up your development shell as described in
Setting up your environment. Also, make sure you have set your Tuxedo environment variables.
Set TUXDIR to the appropriate directory where Tuxedo resides on your machine. In addition, include the
tuxedo8.0/bin and tuxedo 8.0/lib
directories in your path.
- Execute the build script provided for this example
in the examples\iiop\ejb\entity\tuxclient
directory of your WebLogic Server installation.
Run the Example
- Open a separate command-line window in which you will run the client.
- Set up the environment for your client as described in Setting up your environment for building and running the examples. Make sure you have the proper
settings that include the necessary Tuxedo directories in your PATH; make sure you have TUXDIR set to your installation of Tuxedo 8.0 and that
you have included the tuxedo8.0/bin and tuxedo8.0/lib directories in your PATH.
- The build script included in this example also contains the command needed to run the client.
Edit the
build.xml script provided
in the examples\iiop\ejb\entity\tuxclient directory to make sure it is using your correct port and
hostname. The last section of this xml file contains the run command. Run the client by entering:
ant run
When you execute the run command, it is using the following syntax:
Client.exe -ORBid BEA_IIOP -ORBInitRef NameService=corbaloc:iiop:ip_address:7001/NameService
There's more...
Read more about WebLogic RMI over IIOP in the Developer Guide,
Using
WebLogic RMI over IIOP.
Read more about WebLogic EJB in the Developer Guide,
BEA WebLogic Server Enterprise JavaBeans.
Read more about WebLogic RMI in the Developer Guide,
Using
WebLogic RMI.
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.