Package org.objectweb.joram.shared.excepts

Examples of org.objectweb.joram.shared.excepts.MomException


        ConnectionContext ctx = (ConnectionContext) connections.remove(key);
        heartBeatTasks.remove(key);
        reactToClientRequest(key.intValue(), new CnxCloseRequest());

        if (ctx != null) {
          MomException exc = new MomException(MomExceptionReply.HBCloseConnection, "Connection " + getId()
              + ':' + key + " closed");
          ctx.pushError(exc);
        }
      }
    }
View Full Code Here


      doReply(new MomExceptionReply(request.getRequestId(), mE));
    } catch (Exception exc) {
      logger.log(BasicLevel.FATAL, this + " - unexpected error during request: " + request, exc);

      // Sending the exception to the client:
      doReply(new MomExceptionReply(request.getRequestId(), new MomException(exc.getMessage())));
    }
  }
View Full Code Here

   * removing the corresponding subscriptions.
   */
  private void doReact(AgentId from, ExceptionReply rep) {
    if (logger.isLoggable(BasicLevel.DEBUG))
      logger.log(BasicLevel.DEBUG, "UserAgent.doReact(" + from + ',' + rep + ')');
    MomException exc = rep.getException();

    // The exception comes from a topic refusing the access: deleting the subs.
    if (exc instanceof AccessException) {
      if (logger.isLoggable(BasicLevel.DEBUG))
        logger.log(BasicLevel.DEBUG, " -> topicsTable.remove(" + from + ')');
View Full Code Here

TOP

Related Classes of org.objectweb.joram.shared.excepts.MomException

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.