Examples of CachedConnectionManager


Examples of org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager

    @Override
    protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, JcaSubsystemConfiguration handback) throws OperationFailedException {
        JcaSubsystemConfiguration config = (JcaSubsystemConfiguration) context.getServiceRegistry(false).getService(ConnectorServices.CONNECTOR_CONFIG_SERVICE).getValue();

        CachedConnectionManager ccm = (CachedConnectionManager) context.getServiceRegistry(false).getService(ConnectorServices.CCM_SERVICE).getValue();

        if (attributeName.equals(ArchiveValidationAdd.ArchiveValidationParameters.ARCHIVE_VALIDATION_ENABLED.getAttribute().getName())) {
            config.setArchiveValidation(valueToRestore.asBoolean());
        }

        if (attributeName.equals(ArchiveValidationAdd.ArchiveValidationParameters.ARCHIVE_VALIDATION_FAIL_ON_ERROR.getAttribute().getName())) {
            config.setArchiveValidationFailOnError(valueToRestore.asBoolean());
        }
        if (attributeName.equals(ArchiveValidationAdd.ArchiveValidationParameters.ARCHIVE_VALIDATION_FAIL_ON_WARN.getAttribute().getName())) {
            config.setArchiveValidationFailOnWarn(valueToRestore.asBoolean());
        }

        if (attributeName.equals(BeanValidationAdd.BeanValidationParameters.BEAN_VALIDATION_ENABLED.getAttribute().getName())) {
            config.setBeanValidation(valueToRestore.asBoolean());
        }

        if (attributeName.equals(BeanValidationAdd.BeanValidationParameters.BEAN_VALIDATION_ENABLED.getAttribute().getName())) {
            config.setBeanValidation(valueToRestore.asBoolean());
        }

        if (attributeName.equals(CachedConnectionManagerAdd.CcmParameters.DEBUG.getAttribute().getName())) {
            ccm.setDebug(valueToRestore.asBoolean());
        }

        if (attributeName.equals(CachedConnectionManagerAdd.CcmParameters.ERROR.getAttribute().getName())) {
            ccm.setError(valueToRestore.asBoolean());
        }

    }
View Full Code Here

Examples of org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager

    }

    @Override
    protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode resolvedValue, ModelNode currentValue, HandbackHolder<JcaSubsystemConfiguration> jcaSubsystemConfigurationHandbackHolder) throws OperationFailedException {

        CachedConnectionManager ccm = (CachedConnectionManager) context.getServiceRegistry(true).getService(ConnectorServices.CCM_SERVICE).getValue();

        if (attributeName.equals(JcaCachedConnectionManagerDefinition.CcmParameters.DEBUG.getAttribute().getName())) {
            ccm.setDebug(resolvedValue.asBoolean());
        } else if (attributeName.equals(JcaCachedConnectionManagerDefinition.CcmParameters.ERROR.getAttribute().getName())) {
            ccm.setError(resolvedValue.asBoolean());
        }

        return false;

    }
View Full Code Here

Examples of org.jboss.jca.core.api.connectionmanager.ccm.CachedConnectionManager

    }

    @Override
    protected void revertUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode valueToRestore, ModelNode valueToRevert, JcaSubsystemConfiguration handback) throws OperationFailedException {

        CachedConnectionManager ccm = (CachedConnectionManager) context.getServiceRegistry(true).getService(ConnectorServices.CCM_SERVICE).getValue();

        if (attributeName.equals(JcaCachedConnectionManagerDefinition.CcmParameters.DEBUG.getAttribute().getName())) {
            ccm.setDebug(valueToRestore.asBoolean());
        } else if (attributeName.equals(JcaCachedConnectionManagerDefinition.CcmParameters.ERROR.getAttribute().getName())) {
            ccm.setError(valueToRestore.asBoolean());
        }

    }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManager

         cm.setAllocationRetry(allocationRetry.intValue());

      if (allocationRetryWaitMillis != null)
         cm.setAllocationRetryWaitMillis(allocationRetryWaitMillis.longValue());

      CachedConnectionManager ccm = new CachedConnectionManager(tm);
      cm.setCachedConnectionManager(ccm);
   }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManager

         cm.setAllocationRetry(allocationRetry.intValue());

      if (allocationRetryWaitMillis != null)
         cm.setAllocationRetryWaitMillis(allocationRetryWaitMillis.longValue());

      CachedConnectionManager ccm = new CachedConnectionManager(tm);
      cm.setCachedConnectionManager(ccm);
   }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManager

         cm.setAllocationRetry(allocationRetry.intValue());

      if (allocationRetryWaitMillis != null)
         cm.setAllocationRetryWaitMillis(allocationRetryWaitMillis.longValue());

      CachedConnectionManager ccm = new CachedConnectionManager(tm);
      cm.setCachedConnectionManager(ccm);
   }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManager

      }

      pool.setConnectionListenerFactory(cm);
      cm.setPool(pool);

      CachedConnectionManager ccm = new CachedConnectionManager(tm);
      cm.setCachedConnectionManager(ccm);

      return cm;
   }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManager

      if (allocationRetryWaitMillis != null)
         cm.setAllocationRetryWaitMillis(allocationRetryWaitMillis.longValue());

      cm.setUserTransactionRegistry(utr);

      CachedConnectionManager ccm = new CachedConnectionManager(tm);
      cm.setCachedConnectionManager(ccm);
   }
View Full Code Here

Examples of org.jboss.resource.connectionmanager.CachedConnectionManager



   private void startCachedConnectionManager(ObjectName on) throws Exception
   {
      CachedConnectionManager ccm = new CachedConnectionManager();

      // dependencies
      ccm.setTransactionManagerServiceName(TRANSACTION_MANAGER_OBJECT_NAME);

      mbeanServer.registerMBean(ccm, on);
      mbeanServer.invoke(on, "start", new Object[0], new String[0]);
      log.debug("started " + on);
View Full Code Here

Examples of org.jboss.resource.connectionmanager.CachedConnectionManager

      return null;
   }

   public static CachedConnectionManager getCachedConnectionManager(){
     
      return new CachedConnectionManager();
     
   }
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.