WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

Package examples.iiop.rmi.tuxclient

This directory contains the tuxedo client which can be used to demonstrate connectivity to a Tuxedo Server. It could also be slightly modified to go through WebLogic.

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. This includes building the WebLogic Server (iiop/rmi/server/wls) and the Tuxedo Server (iiop/rmi/server/tux) as well. It is also crucial that you have your environment set up correctly. Make sure you have run through the set up and building on the WebLogic Server side first :

  • WebLogic Server

    Be sure to also take a look at the Tuxedo client code.

    Build the example

    1. Set up your development shell as described in Setting up your environment.

    2. Execute the build.xml script provided for this example in the samples\examples\iiop\rmi\tuxclient directory of your WebLogic Server installation.

    Run the Example

    1. Open a separate command-line window in which you will run the client.

    2. Set up the environment for your client as described in Setting up your environment for building and running the examples.

    3. Make sure you have TOBJADDR set in your client's environment. Set it to your ip address and port that Tuxedo are running on, for example set TOBJADDR=//172.17.14.29:2468

    4. The build script included in this example also contains the command needed to run the client. Check the build.xml script provided in the examples\iiop\rmi\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

    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.

    For more information on how to provide interoperability between WebLogic Server applications and Tuxedo services, see WebLogic Tuxedo Connector.