站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 messaging API Documentation 英文版文档

ClientReconnectInterceptor (JBoss Messaging API) - JBoss 3.2.7 messaging API Documentation 英文版文档


org.jboss.mq.server
Class ClientReconnectInterceptor

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

public class ClientReconnectInterceptor
extends JMSServerInterceptorSupport

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.

Author:
Hiram Chirino

Field Summary
protected static org.jboss.logging.Logger log
           
 
Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport
nextInterceptor
 
Constructor Summary
ClientReconnectInterceptor()
           
 
Method Summary
 void checkID(String ID)
          Check id, must not be taken.
 
Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport
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 org.jboss.logging.Logger log
Constructor Detail

ClientReconnectInterceptor

public ClientReconnectInterceptor()
Method Detail

checkID

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

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.