org.exolab.jms.server.mipc
Class IpcJmsSessionList

java.lang.Object
  |
  +--org.exolab.jms.server.mipc.IpcJmsSessionList

public class IpcJmsSessionList
extends java.lang.Object

Keep a list of all session Client connections for a client. All sessions for a client are multiplexed through a single connection. Ensure the same connection is used for all the clients sessions, and that the connection is not destroyed until the last session for the client is shutdown.

Version:
$Revision: 1.6 $ $Date: 2003/08/07 13:33:09 $
Author:
Jim Mourikis
See Also:
IpcJmsServer, IpcJmsSessionSender

Constructor Summary
IpcJmsSessionList(org.exolab.core.mipc.MultiplexConnectionIfc connection)
          Create a connection to the client listener for sending JmsMessages.
 
Method Summary
 void add(JmsServerSession session)
          Add a new session sender for the client.
 boolean remove(JmsServerSession session)
          Remove a sesson notifier.
 void removeAll()
          Remove all session notfiers and close the client connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IpcJmsSessionList

public IpcJmsSessionList(org.exolab.core.mipc.MultiplexConnectionIfc connection)
                  throws java.io.IOException
Create a connection to the client listener for sending JmsMessages.
Parameters:
connection - The MultiplexConnection between client and server
Throws:
java.io.IOException - If a connection error results.
Method Detail

add

public void add(JmsServerSession session)
Add a new session sender for the client. If its not already active.
Parameters:
session - The session to add a notifier on

remove

public boolean remove(JmsServerSession session)
Remove a sesson notifier. If this is the last session for this client close the client connection.
Parameters:
session - The session to remove the notifier from
Returns:
boolean True there are no more connections for this client

removeAll

public void removeAll()
Remove all session notfiers and close the client connection.


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.