assertAccessTimeoutAttribute(2, TimeUnit.HOURS, Color.class.getMethod("color", Boolean.class));
assertLockAttribute("Read", Color.class.getMethod("color", Boolean.class));
}
private void loadAttributes(EjbJarInfo ejbJarInfo, String deploymentId) {
ContainerSystem system = SystemInstance.get().getComponent(ContainerSystem.class);
BeanContext beanContext = system.getBeanContext(deploymentId);
List<MethodConcurrencyInfo> lockInfos = new ArrayList<MethodConcurrencyInfo>();
List<MethodConcurrencyInfo> accessTimeoutInfos = new ArrayList<MethodConcurrencyInfo>();
MethodConcurrencyBuilder.normalize(ejbJarInfo.methodConcurrency, lockInfos, accessTimeoutInfos);
accessTimeoutAttributes = MethodInfoUtil.resolveAttributes(accessTimeoutInfos, beanContext);
lockAttributes = MethodInfoUtil.resolveAttributes(lockInfos, beanContext);