about this package
This package takes the simple "HelloWorld" RMI example and extends it
to bind multiple unique names in the registry and then display multiple
invocations of each to the simple client.
In this package is the Remote interface "Hello," which is implemented
by the "HelloImpl" class. The "sayHello" class invokes the Remote
class from the command line.
Also included in this directory are build scripts for NT, Microsoft SDK
for Java, and UNIX. The
script compiles the files in this directory and runs the WebLogic RMI compiler
on the implementation class.
There are detailed instructions on converting Sun RMI classes to use
WebLogic RMI in the Developers Guide. The instructions here are brief
and assume that you have or will look at the Developers Guide.
how to use this package
Configure the server:
Build the example:
- Register HelloImpl as a startup class in the
weblogic.properties file with the following property:
This entry is already included commented out in the
Run the example:
Set up your development shell, as described in
The build scripts are:
Run the appropriate build script as shown in this
example for the JavaSoft JDK running on NT:
- build.cmd - JavaSoft JDK running on NT
- buildms.cmd - Microsoft SDK for Java
- build.sh - UNIX
- Start the WebLogic Server in a new command shell.
In your development shell, run the client with the following command:
$ java examples.rmi.multihello.sayHello
there's more . . .
Read more about this WebLogic service in the Developers Guide,