Package java.util.logging

Examples of java.util.logging.Logger.log()


*/
public class AddServiceImpl implements AddService {

    public double add(double n1, double n2) {
        Logger logger = Logger.getLogger("calculator");
        logger.log(Level.FINEST, "Adding " + n1 + " and " + n2);

        return n1 + n2;
    }

}
View Full Code Here


@Service(AddService.class)
public class AddServiceImpl implements AddService {

    public double add(double n1, double n2) {
        Logger logger = Logger.getLogger("calculator");
        logger.log(Level.FINEST, "Adding " + n1 + " and " + n2);
        return n1 + n2;
    }
   
    public AddBean addComplexParam(AddBean aBean) {
        aBean.setN3(aBean.getN1() + aBean.getN2());
View Full Code Here

        }
       
        public void error(SAXParseException exception) throws SAXException
        {
            Logger log = Logger.getLogger(ConfigFilesXmlValidationUtils.class.getName());
            log.log(Level.SEVERE, exception.getMessage(), exception);
        }

        public void warning(SAXParseException exception) throws SAXException
        {
            Logger log = Logger.getLogger(ConfigFilesXmlValidationUtils.class.getName());
View Full Code Here

        }

        public void warning(SAXParseException exception) throws SAXException
        {
            Logger log = Logger.getLogger(ConfigFilesXmlValidationUtils.class.getName());
            log.log(Level.WARNING, exception.getMessage(), exception);
        }
    }
   
    public static void validateFacesConfigFile(URL xmlFile,
            ExternalContext externalContext, String version) throws SAXException, IOException
View Full Code Here

            Long cid = getInterestId();

            if (recid != null && recid.equals(cid)) {

                logger.log(Level.INFO,
                         "Recreate ConnectionConsumer["+cid+"] ...");


                ProtocolHandler ph = connection.getProtocolHandler();
                try {
View Full Code Here


                ProtocolHandler ph = connection.getProtocolHandler();
                try {
                    ph.stopSession(connection.getConnectionID().longValue());
                    logger.log(Level.FINE,
                           "Stopped ConnectionConsumer["+cid+"]'s session "+cid);
                    sessionstopped = true;
                } catch (Throwable t) {
                    String emsg = "Exception in stopping ConnectionConsumer["+cid+"]'s session";
                    logger.log(Level.SEVERE, emsg, t);
View Full Code Here

                    logger.log(Level.FINE,
                           "Stopped ConnectionConsumer["+cid+"]'s session "+cid);
                    sessionstopped = true;
                } catch (Throwable t) {
                    String emsg = "Exception in stopping ConnectionConsumer["+cid+"]'s session";
                    logger.log(Level.SEVERE, emsg, t);
                    if (t instanceof JMSException) throw (JMSException)t;
                    JMSException jmse = new JMSException(emsg+": "+t.getMessage());
                    jmse.initCause(t);
                    throw jmse;
                }
View Full Code Here

                        setRecreationInProgress2(true);
                    }
                }
               

                logger.log(Level.INFO,
                       "Reset ConnectionConsumer["+cid+"]'s ServerSessions "+seenSessions.size());

                SessionImpl[] sss = null;
                synchronized(seenSessions) {
                    sss = (SessionImpl[])seenSessions.toArray(new SessionImpl[0]);
View Full Code Here

                    sss = (SessionImpl[])seenSessions.toArray(new SessionImpl[0]);
                }
                SessionImpl ss = null;
                for (int i = 0; i < sss.length; i++) {
                    ss = (SessionImpl)sss[i];
                    logger.log(Level.FINE,
                           "Reseting ConnectionConsumer["+cid+"]'s ServerSession's session "+ss);

                    ss.resetServerSessionRunner(false);

                    logger.log(Level.FINE,
View Full Code Here

                    logger.log(Level.FINE,
                           "Reseting ConnectionConsumer["+cid+"]'s ServerSession's session "+ss);

                    ss.resetServerSessionRunner(false);

                    logger.log(Level.FINE,
                           "Reseted ConnectionConsumer["+cid+"]'s ServerSession's session "+ss);
                }

                int xarcnt = 0;
                long waittime = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.