KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > client > IClientSession


1 package com.ubermq.jms.client;
2
3 import com.ubermq.kernel.*;
4 import java.io.*;
5
6 /**
7  * Serves as a context for all connections of a particular class
8  * in the process space.
9  * This exists so we can do efficient network I/O when applicable.
10  */

11 public interface IClientSession
12 {
13     /**
14      * Creates a connection as described by the ConnectionDescriptor,
15      * using a particular message processor and associated with a JMS
16      * connection object.
17      * @param cxn the JMS connection object to associate with the new
18      * connection.
19      * @param descriptor provides information to the session on how
20      * to connect to the destination.
21      * @param proc the message processor to handle datagrams from the
22      * new connection.
23      */

24     public IConnectionInfo connect(javax.jms.Connection JavaDoc cxn,
25                                    ConnectionDescriptor descriptor,
26                                    IMessageProcessor proc)
27         throws java.io.IOException JavaDoc;
28     
29     /**
30      * Indicates that the connection has been started and that I/O
31      * should commence.
32      */

33     public void started(IConnectionInfo c)
34         throws IOException;
35 }
36
Popular Tags