org.jboss.mq.server
Class ClientReconnectInterceptor

java.lang.Object
  extended byorg.jboss.mq.server.JMSServerInterceptorSupport (src) 
      extended byorg.jboss.mq.server.ClientReconnectInterceptor
All Implemented Interfaces:
JMSServerInterceptor (src)

public class ClientReconnectInterceptor
extends JMSServerInterceptorSupport (src)

The JMS spec does not let a second client with the same clientID connect to the server. The second client gets an InvalidClientIDException exception. This interceptor modifies the server so that the first client gets disconnected and then the second client can connect successfully. Currently it only works if the client id is set by the client using the setClient method call.


Field Summary
protected static Logger (src) log
           
 
Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src)
nextInterceptor
 
Constructor Summary
ClientReconnectInterceptor()
           
 
Method Summary
 void checkID(java.lang.String ID)
          Check id, must not be taken.
 
Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src)
acknowledge, addMessage, authenticate, browse, checkUser, connectionClosing, createQueue, createTopic, deleteTemporaryDestination, destroySubscription, getDurableTopic, getID, getNext, getSubscription, getTemporaryQueue, getTemporaryTopic, getThreadGroup, ping, receive, setEnabled, setNext, subscribe, transact, unsubscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger (src)  log
Constructor Detail

ClientReconnectInterceptor

public ClientReconnectInterceptor()
Method Detail

checkID

public void checkID(java.lang.String ID)
             throws JMSException (src) 
Description copied from class: JMSServerInterceptorSupport (src)
Check id, must not be taken.

Specified by:
checkID in interface JMSServerInterceptor (src)
Overrides:
checkID in class JMSServerInterceptorSupport (src)
Parameters:
ID - a clientID
Throws:
JMSException (src) - if ID is already taken
See Also:
JMSServerInterceptor.checkID(java.lang.String)