当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 messaging API Documentation 英文版文档
ClientReconnectInterceptor (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档
org.jboss.mq.server
Class ClientReconnectInterceptor
java.lang.Object
org.jboss.mq.server.JMSServerInterceptorSupport
org.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
|
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 |
log
protected static org.jboss.logging.Logger log
ClientReconnectInterceptor
public ClientReconnectInterceptor()
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.