|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.server.JMSServerInterceptorSupport (src)
org.jboss.mq.server.ClientReconnectInterceptor
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 |
protected static Logger (src) log
Constructor Detail |
public ClientReconnectInterceptor()
Method Detail |
public void checkID(java.lang.String ID) throws JMSException (src)
JMSServerInterceptorSupport (src)
checkID
in interface JMSServerInterceptor (src)
checkID
in class JMSServerInterceptorSupport (src)
ID
- a clientID
JMSException (src)
- if ID is already takenJMSServerInterceptor.checkID(java.lang.String)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |