Examples of EJBContainerAvailabilityConfig


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

        @HandlerOutput(name="SFSBPersistenceType",      type=String.class),
        @HandlerOutput(name="SFSBStoreName",            type=String.class)})
       
        public static void getDefaultEjbAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        EJBContainerAvailabilityConfig ejbConfig = config.getAvailabilityServiceConfig().getEJBContainerAvailabilityConfig();
        boolean availEnabled = Boolean.valueOf(ejbConfig.getDefaultValue("AvailabilityEnabled")).booleanValue();
        String haPersistenceType = ejbConfig.getDefaultValue("SFSBHAPersistenceType");        
        String sfsbPersistenceType = ejbConfig.getDefaultValue("SFSBPersistenceType");       
        String sfsbStoreName = ejbConfig.getDefaultValue("SFSBStorePoolName");       
              
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("HAPersistenceType", haPersistenceType);
        handlerCtx.setOutputValue("SFSBPersistenceType", sfsbPersistenceType);
        handlerCtx.setOutputValue("SFSBStoreName", sfsbStoreName);
View Full Code Here

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

        @HandlerOutput(name="SFSBStoreName",            type=String.class),
        @HandlerOutput(name="Properties",               type=Map.class)})
       
        public static void getEjbAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        EJBContainerAvailabilityConfig ejbConfig = config.getAvailabilityServiceConfig().getEJBContainerAvailabilityConfig();
        boolean availEnabled = ejbConfig.getAvailabilityEnabled();
        String haPersistenceType = ejbConfig.getSFSBHAPersistenceType();
        String sfsbPersistenceType = ejbConfig.getSFSBPersistenceType();
        String sfsbStoreName = ejbConfig.getSFSBStorePoolName();     
        Map<String, String> props = ejbConfig.getProperties();
        handlerCtx.setOutputValue("AvailabilityEnabled", availEnabled);
        handlerCtx.setOutputValue("HAPersistenceType", haPersistenceType);
        handlerCtx.setOutputValue("SFSBPersistenceType", sfsbPersistenceType);
        handlerCtx.setOutputValue("SFSBStoreName", sfsbStoreName);
        handlerCtx.setOutputValue("Properties", props);      
View Full Code Here

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

        @HandlerInput(name="RemoveProps",              type=ArrayList.class)})
       
        public static void saveEjbAvailabilitySettings(HandlerContext handlerCtx) {
        ConfigConfig config = AMXUtil.getConfig(((String)handlerCtx.getInputValue("ConfigName")));
        try{
            EJBContainerAvailabilityConfig ejbConfig = config.getAvailabilityServiceConfig().getEJBContainerAvailabilityConfig();
            ejbConfig.setAvailabilityEnabled(((Boolean)handlerCtx.getInputValue("AvailabilityEnabled")).booleanValue());
            ejbConfig.setSFSBHAPersistenceType(((String)handlerCtx.getInputValue("HAPersistenceType")));
            ejbConfig.setSFSBPersistenceType(((String)handlerCtx.getInputValue("SFSBPersistenceType")));
            ejbConfig.setSFSBStorePoolName(((String)handlerCtx.getInputValue("SFSBStoreName")));
            AMXUtil.editProperties(handlerCtx, ejbConfig);
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
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.