org.objectweb.jonas.rmifilters
Class Skeleton

java.lang.Object
  |
  +--org.objectweb.jonas.rmifilters.Skeleton
Direct Known Subclasses:
SecuritySkeleton

public class Skeleton
extends java.lang.Object

The Skeleton class is the common superclass to all server skeletons generated by the the Bull rmic compiler used for the implicit transactional context propagation. inRequest() extracts in the ObjectInputStream the Control object corresponding to the propagated transaction (it may be null). and attaches the current thread to the transaction. outReply() detaches the association thread/transaction.

Author:
Philippe Coq Contributor(s):

Field Summary
protected static org.objectweb.util.monolog.api.Logger logger
           
 
Constructor Summary
Skeleton()
           
 
Method Summary
 void inRequest(java.rmi.server.RemoteCall call)
          inRequest is called before invoking the operation in the implementation object.
 java.io.ObjectOutput outReply(java.rmi.server.RemoteCall call)
          outReply is called before return to the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail

Skeleton

public Skeleton()
Method Detail

inRequest

public void inRequest(java.rmi.server.RemoteCall call)
               throws java.lang.ClassNotFoundException,
                      java.rmi.UnmarshalException
inRequest is called before invoking the operation in the implementation object. It extracts the transactional context propagated as the last parameter of the remote operation then resumes the corresponding transaction in the server. It releases the Input Stream associated to the Remote Call object.

outReply

public java.io.ObjectOutput outReply(java.rmi.server.RemoteCall call)
                              throws java.rmi.MarshalException,
                                     java.io.IOException,
                                     java.io.StreamCorruptedException
outReply is called before return to the caller. The current transaction is suspended.