All Examples  This Package

Class examples.rmi.hello.HelloImpl

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

public class HelloImpl
extends Object
implements Hello

This simple example is available as part of Sun's distribution package. We've just changed the package statement and import statements to work with WebLogic RMI.

Note that with WebLogic RMI, you don't need to extend UnicastRemoteObject. Also, you don't need to set a SecurityManager, although you can set one if desired. WebLogic RMI uses security measures (like SSL) that are build into WebLogic, rather than implementing a special case of security for remote objects.

Author:
Copyright (c) 1997-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

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

Method Index

 o main(String[])
Allows the WebLogic Server to instantiate this implementation and bind it in the registry.
 o sayHello()
Returns a string.

Constructors

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

Parameters:
s - String message

Methods

 o sayHello
 public String sayHello() throws RemoteException
Returns a string.

Returns:
String message
 o main
 public static void main(String args[])
Allows the WebLogic Server to instantiate this implementation and bind it in the registry.


All Examples  This Package