Package org.jboss.jms.client

Examples of org.jboss.jms.client.FailoverListener


   public Object  handleRegisterFailoverListener(Invocation invocation) throws Throwable
   {
      ConnectionState state = getConnectionState(invocation);

      MethodInvocation mi = (MethodInvocation)invocation;
      FailoverListener listener = (FailoverListener)mi.getArguments()[0];

      state.getFailoverCommandCenter().registerFailoverListener(listener);

      return null;
   }
View Full Code Here


   public Object handleUnregisterFailoverListener(Invocation invocation) throws Throwable
   {
      ConnectionState state = getConnectionState(invocation);

      MethodInvocation mi = (MethodInvocation)invocation;
      FailoverListener listener = (FailoverListener)mi.getArguments()[0];

      boolean result = state.getFailoverCommandCenter().unregisterFailoverListener(listener);

      return new Boolean(result);
   }
View Full Code Here

/*     */   public Object handleRegisterFailoverListener(Invocation invocation) throws Throwable
/*     */   {
/* 203 */     ConnectionState state = getConnectionState(invocation);
/*     */
/* 205 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 206 */     FailoverListener listener = (FailoverListener)mi.getArguments()[0];
/*     */
/* 208 */     state.getFailoverCommandCenter().registerFailoverListener(listener);
/*     */
/* 210 */     return null;
/*     */   }
View Full Code Here

/*     */   public Object handleUnregisterFailoverListener(Invocation invocation) throws Throwable
/*     */   {
/* 215 */     ConnectionState state = getConnectionState(invocation);
/*     */
/* 217 */     MethodInvocation mi = (MethodInvocation)invocation;
/* 218 */     FailoverListener listener = (FailoverListener)mi.getArguments()[0];
/*     */
/* 220 */     boolean result = state.getFailoverCommandCenter().unregisterFailoverListener(listener);
/*     */
/* 222 */     return new Boolean(result);
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.FailoverListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.