Package com.sun.messaging.jmq.jmsserver.util

Examples of com.sun.messaging.jmq.jmsserver.util.LockFile


            synchronized(lock) {
                if (audit == null) {
                    MQAuditService.init();
                    try {
                      audit = MQAuditService.getAuditSession();
                      LockFile lf = LockFile.getCurrentLockFile();
                    if (lf != null) {
                      audit.setInstance(lf.getInstance(),lf.getHost(), lf.getPort());
            }
                    } catch (BrokerException ex) {
                      getLogger().logStack(Logger.ERROR, ex.toString(), ex);
                        Broker.getBroker().exit(BrokerExitCode.ERROR, ex.toString(), BrokerEvent.Type.EXCEPTION);
                    }
View Full Code Here


        this.port = port;

        addService(SERVICE_NAME, "tcp", "PORTMAPPER", port, portmapperMap);

        LockFile lf = LockFile.getCurrentLockFile();

      try {
          if (lf != null) {
              lf.updatePort(port);
          }
        } catch (IOException e) {
          logger.log(Logger.WARNING, rb.E_LOCKFILE_BADUPDATE, e);
        }
View Full Code Here

        }

        this.hostname = hostname;
        this.mqaddress =  mqaddr;

  LockFile lf = LockFile.getCurrentLockFile();

  try {
      if (lf != null) {
          lf.updateHostname(mqaddress.getHostName());
      }
        } catch (IOException e) {
      logger.log(Logger.WARNING, rb.E_LOCKFILE_BADUPDATE, e);
        }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsserver.util.LockFile

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.