Package org.objectweb.joram.mom.notifications

Examples of org.objectweb.joram.mom.notifications.GetProxyIdNot


        heartBeat = StreamUtil.readIntFrom(is);
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, " -> read heartBeat = " + heartBeat);
      }

      GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);
      AgentId proxyId;
      try {
        gpin.invoke(AdminTopic.getDefault());
        proxyId = gpin.getProxyId();
      } catch (Exception exc) {
        if (logger.isLoggable(BasicLevel.DEBUG))
          logger.log(BasicLevel.DEBUG, "", exc);
        failedLoginCount++;
        StreamUtil.writeTo(1, nos);
View Full Code Here


      logger.log(BasicLevel.DEBUG,
                 "SoapProxyService.setConnection(" + identityMap + ',' + heartBeat + ')');

    Identity identity = (Identity) Identity.soapDecode(identityMap);
   
    GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
    gpin.invoke(AdminTopic.getDefault());
    AgentId proxyId = gpin.getProxyId();
   
    OpenConnectionNot ocn = new OpenConnectionNot(false, heartBeat)
    ocn.invoke(proxyId);

    StandardConnectionContext cc = (StandardConnectionContext) ocn.getConnectionContext();
View Full Code Here

        logger.log(BasicLevel.WARN,
                   "LocalConnection.connect(), server is not started: " + AgentServer.getStatusInfo() + '.');
      throw new Exception("Server is not started.");
    }

    GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
    try {
      gpin.invoke(AdminTopic.getDefault());
      proxyId = gpin.getProxyId();
    } catch (Exception exc) {
      if (logger.isLoggable(BasicLevel.DEBUG))
        logger.log(BasicLevel.DEBUG, "", exc);
      localConnections.increaseFailedLoginCount();
      throw new JMSException(exc.getMessage());
View Full Code Here

   */
  public boolean checkCredentials(String userName, String password) {
    try {
      Identity identity = createIdentity(Identity.getRootName(userName), password,
          Identity.getRootIdentityClass(userName));
      GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
      gpin.invoke(AdminTopic.getDefault());
      return true;
    } catch (Exception exc) {
      if (logger.isLoggable(BasicLevel.DEBUG))
        logger.log(BasicLevel.DEBUG, "", exc);
      return false;
View Full Code Here

TOP

Related Classes of org.objectweb.joram.mom.notifications.GetProxyIdNot

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.