@Override protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final EJBComponentDescription componentConfiguration) throws DeploymentUnitProcessingException { final EnterpriseBeanMetaData beanMetaData = componentConfiguration.getDescriptorData(); if(componentConfiguration.isEntity() || beanMetaData == null) { return; } final TransactionManagementType type = componentConfiguration.getDescriptorData().getTransactionType(); if(type != null) { componentConfiguration.setTransactionManagementType(type); } } }
/** * Is this container managed transactions * * @return true when CMT */ public boolean isCMT() { TransactionManagementType type = getTransactionType(); if (type == null) return true; else return type == TransactionManagementType.CONTAINER; }
/** * Is this container managed transactions * * @return true when CMT */ public boolean isCMT() { TransactionManagementType type = getTransactionType(); if (type == null) return true; else return type == TransactionManagementType.CONTAINER; }
@Override protected void handleDeploymentDescriptor(final DeploymentUnit deploymentUnit, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final EJBComponentDescription componentConfiguration) throws DeploymentUnitProcessingException { final EnterpriseBeanMetaData beanMetaData = componentConfiguration.getDescriptorData(); if(componentConfiguration.isEntity() || beanMetaData == null) { return; } final TransactionManagementType type = componentConfiguration.getDescriptorData().getTransactionType(); if(type != null) { componentConfiguration.setTransactionManagementType(type); } } }
else if(original != null && original.getTransactionType() != null) transactionType = original.getTransactionType();
else if(original != null && original.getTransactionType() != null) transactionType = original.getTransactionType();