WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

examples.tutorials.migration.banking
Class RMILoggerImpl

java.lang.Object
  |
  +--examples.tutorials.migration.banking.RMILoggerImpl
All Implemented Interfaces:
java.rmi.Remote, weblogic.rmi.Remote, RMILogger

public class RMILoggerImpl
extends java.lang.Object
implements RMILogger

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) 2001 by BEA Systems, Inc. All Rights Reserved.

Constructor Summary
RMILoggerImpl(java.lang.String s)
          Constructs a RMILoggerImpl with the specified string.
 
Method Summary
 void log(java.lang.String s)
          Prefixes the string with RMILogger and outputs it.
static void main(java.lang.String[] args)
          Allows the WebLogic Server to instantiate this implementation and bind it in the registry.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMILoggerImpl

public RMILoggerImpl(java.lang.String s)
              throws weblogic.rmi.RemoteException
Constructs a RMILoggerImpl with the specified string.
Parameters:
s - String message
Method Detail

log

public void log(java.lang.String s)
         throws weblogic.rmi.RemoteException
Prefixes the string with RMILogger and outputs it.
Specified by:
log in interface RMILogger
Parameters:
s - String message.
Throws:
weblogic.rmi.RemoteException -  

main

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

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

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