com.konakart.rmi
Class KKRMIEngServerBase

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by com.konakart.rmi.KKRMIEngServerBase
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote
Direct Known Subclasses:
KKRMIEngServer

public class KKRMIEngServerBase
extends java.rmi.server.UnicastRemoteObject

KonaKart RMI Server-side Engine Base for the Application Engine Implements the server side part of the RMI Application Engine. It has to manage multiple engines - one for each store, instantiating them on demand as new calls are made on specific stores.

See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Method Summary
protected static KKEngIf getRmiEngine(java.lang.String storeId)
           
protected static java.rmi.RemoteException handleThrowable(java.lang.Throwable e, java.lang.String methodName)
          Handles the exception for all methods.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Method Detail

getRmiEngine

protected static KKEngIf getRmiEngine(java.lang.String storeId)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

handleThrowable

protected static java.rmi.RemoteException handleThrowable(java.lang.Throwable e,
                                                          java.lang.String methodName)
Handles the exception for all methods. If the exception is a KKException and has a cause exception, then we add the cause exception instead of the KKException, although we do save the message of the KKException. We do this so that the receiver can detect the cause exception and act on it. Otherwise it gets lost.

Parameters:
e -
methodName -
Returns:
Returns an exception


Copyright © 2011 DS Data Systems UK Ltd.