org.objectweb.jonas.rmifilters
Class TSHandler

org.objectweb.jonas.rmifilters.TSHandler

public class TSHandler


Constructor Summary
TSHandler(org.objectweb.jonathan.apis.kernel.Context c, java.lang.Object[] used_components)
          Builds a new Jeremie transaction service handler instance.
 
Method Summary
 org.omg.IOP.ServiceContext getReplyContext(int id, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a reply context.
 org.omg.IOP.ServiceContext getRequestContext(int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a request context.
 void handleReplyContext(org.omg.IOP.ServiceContext context, int id, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
 void handleRequestContext(org.omg.IOP.ServiceContext context, int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on request arrival.
 

Constructor Detail

TSHandler

public TSHandler(org.objectweb.jonathan.apis.kernel.Context c,
                 java.lang.Object[] used_components)
          throws org.objectweb.jonathan.apis.kernel.JonathanException
Builds a new Jeremie transaction service handler instance.
Parameters:
c - unused
used_components - the components used to initialize the new TSHandler.
Throws:
JonathanException - if something goes wrong.
Method Detail

getRequestContext

public org.omg.IOP.ServiceContext getRequestContext(int id,
                                                    boolean r,
                                                    byte[] key,
                                                    org.objectweb.jonathan.apis.kernel.Context k)
Returns a request context.
Returns:
a service context.

getReplyContext

public org.omg.IOP.ServiceContext getReplyContext(int id,
                                                  org.objectweb.jonathan.apis.kernel.Context k)
Returns a reply context.
Returns:
a service context.

handleRequestContext

public void handleRequestContext(org.omg.IOP.ServiceContext context,
                                 int id,
                                 boolean r,
                                 byte[] key,
                                 org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.
Parameters:
context - the service context of the request;

handleReplyContext

public void handleReplyContext(org.omg.IOP.ServiceContext context,
                               int id,
                               org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
Parameters:
context - the service context of the reply;