|
|
| WebLogic Server 7.0 Code Examples, BEA Systems, Inc. |
|
SUMMARY: INNER | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD |
examples.rmi.hello
Class HelloImpl
java.lang.Object
|
+--examples.rmi.hello.HelloImpl
- All Implemented Interfaces:
- Hello, java.rmi.Remote
- public class HelloImpl
- extends java.lang.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) 1999-2002 by BEA Systems, Inc. All Rights Reserved.
|
Constructor Summary |
HelloImpl(java.lang.String s)
Constructs a HelloImpl with the specified string. |
|
Method Summary |
static void |
main(java.lang.String[] args)
Allows the WebLogic Server to instantiate this implementation
and bind it in the registry. |
java.lang.String |
sayHello()
Returns a string. |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HelloImpl
public HelloImpl(java.lang.String s)
throws java.rmi.RemoteException
- Constructs a HelloImpl with the specified string.
- Parameters:
s - String message
main
public static void main(java.lang.String[] args)
- Allows the WebLogic Server to instantiate this implementation
and bind it in the registry.
sayHello
public java.lang.String sayHello()
throws java.rmi.RemoteException
- Returns a string.
- Specified by:
sayHello in interface Hello
- Returns:
- String message
- Throws:
java.rmi.RemoteException -
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.