WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

Package examples.iiop.rmi.rmiclient

This directory contains the RMI client which can be used to demonstrate connectivity to a WebLogic Server, as well as server to server connectivity with Tuxedo.

See:
          Description

Class Summary
PingClient This client uses the remote PingServer methods.
 

Package examples.iiop.rmi.rmiclient Description

This directory contains the RMI client which can be used to demonstrate connectivity to a WebLogic Server, as well as server to server connectivity with Tuxedo.

Before you run the client applications in this directory, be sure to build the whole example. This includes building the WebLogic Server and, if you wish to run through the Tuxedo Server, the Tuxedo Server (iiop/rmi/server/tux) as well.

  • Setting up Ping and configuring WebLogic Server

  • Setting up and configuring Tuxedo Server

    It is also crucial that you have your environment set up correctly as detailed in the steps to configure the WebLogic and Tuxedo Servers. If you run into problems, make sure to check your environment; check especially your PATH and CLASSPATH as well as the BDMCONFIG, TOBJADDRESS , and TUXCONFIG variables that are used by Tuxedo. In this example, you will not connect to Tuxedo directly; however, you can make an outbound call to Ping! Tuxedo if you have your Tuxedo Server running.

    Build the example

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

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

    Also check out the code on the client side: PingClient

    Run the Example

    1. Make sure you have started the server following the WL_HOME/samples/examples/iiop/rmi/server/wls instructions.
    2. Open a separate command-line window in which you will run the client.

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

    4. Run the client by executing the PingClient application:
      java examples.iiop.rmi.rmiclient.PingClient iiop://localhost:7001 

      Enter the correct hostname and port for your particular configuration

    5. Note: To demonstrate server to server connectivity add true to the end of the command (i.e. java examples.iiop.rmi.rmiclient.PingClient iiop://localhost:7001 true. If you have set up both your environments correctly, the WebLogic Server you have called will make an outbound call to the Tuxedo Server and you should see Ping! in the most current ULOG (located in the directory in which you have booted your Tuxedo Server).

    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 about WebLogic Server WebLogic Tuxedo Connector, see:


    Documentation is available at
    http://e-docs.bea.com/wls/docs61

    Copyright © 2001 BEA Systems, Inc. All Rights Reserved.