Пример #1
0
  private void copyConcurrentMethods(
      final SessionBean bean, final EjbJarInfo ejbJarInfo, final Map ejbds) {
    for (final ConcurrentMethod method : bean.getConcurrentMethod()) {
      final MethodConcurrencyInfo info = new MethodConcurrencyInfo();

      if (method.getLock() != null) {
        info.concurrencyAttribute = method.getLock().toString();
      }
      info.accessTimeout = toInfo(method.getAccessTimeout());

      final Method m = new Method(bean.getEjbName(), null, method.getMethod().getMethodName());
      m.setMethodParams(method.getMethod().getMethodParams());
      info.methods.add(getMethodInfo(m, ejbds));
      ejbJarInfo.methodConcurrency.add(info);
    }
  }
Пример #2
0
  private void initMethodConcurrency(
      final EjbModule jar, final Map ejbds, final EjbJarInfo ejbJarInfo) {
    final List<ContainerConcurrency> containerConcurrency =
        jar.getEjbJar().getAssemblyDescriptor().getContainerConcurrency();
    for (final ContainerConcurrency att : containerConcurrency) {
      final MethodConcurrencyInfo info = new MethodConcurrencyInfo();

      info.description = att.getDescription();
      if (att.getLock() != null) {
        info.concurrencyAttribute = att.getLock().toString();
      }
      info.accessTimeout = toInfo(att.getAccessTimeout());

      info.methods.addAll(getMethodInfos(att.getMethod(), ejbds));
      ejbJarInfo.methodConcurrency.add(info);
    }
  }