/* */ }
/* */
/* 84 */ this.connectionState = ((ConnectionState)hs);
/* */ }
/* */
/* 87 */ FailoverCommandCenter fcc = this.connectionState.getFailoverCommandCenter();
/* */
/* 90 */ if (fcc == null)
/* */ {
/* 92 */ return invocation.invokeNext();
/* */ }
/* */
/* 95 */ FailoverValve2 valve = fcc.getValve();
/* */
/* 97 */ JMSRemotingConnection remotingConnection = null;
/* 98 */ String methodName = ((MethodInvocation)invocation).getMethod().getName();
/* */
/* 100 */ if (methodName.equals("startAfterFailover"))
/* */ {
/* 103 */ return invocation.invokeNext();
/* */ }
/* */
/* 106 */ boolean left = false;
/* */ try
/* */ {
/* 110 */ valve.enter();
/* */
/* 113 */ remotingConnection = fcc.getRemotingConnection();
/* 114 */ Object localObject1 = invocation.invokeNext();
/* */ return localObject1;
/* */ }
/* */ catch (MessagingNetworkFailureException e)
/* */ {
/* 118 */ valve.leave();
/* 119 */ left = true;
/* */
/* 121 */ log.debug(this + " detected network failure, putting " + methodName + "() on hold until failover completes");
/* */
/* 124 */ fcc.failureDetected(e, this, remotingConnection);
/* */
/* 129 */ if ((((invocation.getTargetObject() instanceof ClientSessionDelegate)) && (methodName.equals("send"))) || (((invocation.getTargetObject() instanceof ClientConnectionDelegate)) && (methodName.equals("sendTransaction"))))
/* */ {
/* 132 */ log.trace(this + " caught " + methodName + "() invocation, enabling check for duplicates");
/* */