Package com.sun.appserv.management.config

Examples of com.sun.appserv.management.config.EJBTimerServiceConfig


        @HandlerOutput(name="TimerDatasource",   type=String.class) })
       
        public static void getEjbTimerSettings(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        EJBTimerServiceConfig ejbTimerSrv = config.getEJBContainerConfig().getEJBTimerServiceConfig();
       
        String minDelivery = ejbTimerSrv.getMinimumDeliveryIntervalInMillis();
        String maxRedelivery = ejbTimerSrv.getMaxRedeliveries();
        String redeliveryIntr = ejbTimerSrv.getRedeliveryIntervalInternalInMillis();
        String timerDatasource = ejbTimerSrv.getTimerDatasource();
       
        handlerCtx.setOutputValue("MinDelivery", minDelivery);
        handlerCtx.setOutputValue("MaxRedelivery", maxRedelivery);
        handlerCtx.setOutputValue("RedeliveryIntr", redeliveryIntr);
        handlerCtx.setOutputValue("TimerDatasource", timerDatasource);
View Full Code Here


       
        public static void saveEjbTimerServiceValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        try{
            EJBTimerServiceConfig ejbTimerSrv = config.getEJBContainerConfig().getEJBTimerServiceConfig();
            ejbTimerSrv.setMinimumDeliveryIntervalInMillis((String)handlerCtx.getInputValue("MinDelivery"));
            ejbTimerSrv.setMaxRedeliveries((String)handlerCtx.getInputValue("MaxRedelivery"));
            ejbTimerSrv.setRedeliveryIntervalInternalInMillis((String)handlerCtx.getInputValue("RedeliveryIntr"));
            ejbTimerSrv.setTimerDatasource((String)handlerCtx.getInputValue("TimerDatasource"));
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
       
    }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.EJBTimerServiceConfig

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.