org.jboss.mq.il
Interface ClientILService

All Known Implementing Classes:
HTTPClientILService (src) , JVMClientILService (src) , OIL2ClientILService (src) , OILClientILService (src) , RMIClientILService (src) , UILClientILService (src)

public interface ClientILService

This class manages the lifecycle of an instance of the ClientIL Implementations of this class should have a default constructor.


Method Summary
 ClientIL (src) getClientIL()
          After initialization, this method may be called to obtain a reference to a ClientIL object.
 void init(Connection (src)  connection, java.util.Properties props)
          After construction, the ClientILService is initialized with a reference to the Connection object and the connection properties.
 void start()
          Once started, the ClientIL instance should process all server requests.
 void stop()
          Once stopped, the ClientIL instance stop processing all server requests.
 

Method Detail

init

public void init(Connection (src)  connection,
                 java.util.Properties props)
          throws java.lang.Exception
After construction, the ClientILService is initialized with a reference to the Connection object and the connection properties.

Parameters:
connection - Description of Parameter
props - Description of Parameter
Throws:
java.lang.Exception - Description of Exception

getClientIL

public ClientIL (src)  getClientIL()
                     throws java.lang.Exception
After initialization, this method may be called to obtain a reference to a ClientIL object. This object will eventually be serialized and sent to the server so that he can invoke methods on connection it was initialized with.

Returns:
The ClientIL value
Throws:
java.lang.Exception - Description of Exception

start

public void start()
           throws java.lang.Exception
Once started, the ClientIL instance should process all server requests.

Throws:
java.lang.Exception - Description of Exception

stop

public void stop()
          throws java.lang.Exception
Once stopped, the ClientIL instance stop processing all server requests. if( cr_server != null ) cr_server.close(); if (cr!=null && cr instanceof java.rmi.Remote) { java.rmi.server.UnicastRemoteObject.unexportObject((java.rmi.Remote)cr, true); }

Throws:
java.lang.Exception - Description of Exception