All Examples  This Package

Class examples.rmi.multihello.HelloImpl

java.lang.Object
   |
   +----examples.rmi.multihello.HelloImpl

public class HelloImpl
extends Object
implements Hello
This remote class implements the Hello remote interface, which returns a 'hello' message identifying this class instance by name.

The main() method registers 10 instances of this class in the RMI registry of the WebLogic Server. For this example, you should register this class as a startupClass in the weblogic.properties file, with the property:

weblogic.system.startupClass.multihello=examples.rmi.multihello.HelloImpl This will cause main() to be invoked when you start the WebLogic Server, and thus will instantiate 10 instances and register them in the RMI registry. In this example, the ClientApp Java application invokes the sayHello() remote methods on each of the remote instances of this calss multiple times via different protocols with WebLogic RMI.


Constructor Index

 o HelloImpl(String)
Creates a HelloImpl with the specified string.

Method Index

 o main(String[])
Creates and binds 10 HelloImpl objects in the WebLogic Server and binds each to a unique name.
 o sayHello()
Returns the string message for a HelloImpl.

Constructors

 o HelloImpl
 public HelloImpl(String s) throws RemoteException
Creates a HelloImpl with the specified string.

Parameters:
s - String message
Throws: RemoteException
if the impl cannot be created

Methods

 o sayHello
 public String sayHello() throws RemoteException
Returns the string message for a HelloImpl.

Returns:
String message
Throws: RemoteException
if there is an error
 o main
 public static void main(String args[])
Creates and binds 10 HelloImpl objects in the WebLogic Server and binds each to a unique name.


All Examples  This Package