public ContainerConcurrency getContainerConcurrency(final Class clazz) { ContainerConcurrency concurrency = methods.get(clazz); if (concurrency == null) { concurrency = new ContainerConcurrency(null, clazz.getName(), bean.getEjbName(), "*"); methods.put(clazz, concurrency); assemblyDescriptor.getContainerConcurrency().add(concurrency); } return concurrency; }
public ContainerConcurrency getContainerConcurrency(final Class clazz) { ContainerConcurrency concurrency = methods.get(clazz); if (concurrency == null) { concurrency = new ContainerConcurrency(null, clazz.getName(), bean.getEjbName(), "*"); methods.put(clazz, concurrency); assemblyDescriptor.getContainerConcurrency().add(concurrency); } return concurrency; }
public ContainerConcurrency getContainerConcurrency(final Method method) { ContainerConcurrency concurrency = methods.get(method); if (concurrency == null) { concurrency = new ContainerConcurrency(null, bean.getEjbName(), method); methods.put(method, concurrency); assemblyDescriptor.getContainerConcurrency().add(concurrency); } return concurrency; }
public ContainerConcurrency getContainerConcurrency(final Method method) { ContainerConcurrency concurrency = methods.get(method); if (concurrency == null) { concurrency = new ContainerConcurrency(null, bean.getEjbName(), method); methods.put(method, concurrency); assemblyDescriptor.getContainerConcurrency().add(concurrency); } return concurrency; }
public Map<String, List<MethodAttribute>> getExistingDeclarations() { final Map<String, List<MethodAttribute>> declarations = new HashMap<String, List<MethodAttribute>>(); final List<ConcurrentMethod> methods = bean.getConcurrentMethod(); for (final ConcurrentMethod method : methods) { List<MethodAttribute> list = declarations.get(method.getMethod().getMethodName()); if (list == null) { list = new ArrayList<MethodAttribute>(); declarations.put(method.getMethod().getMethodName(), list); } list.add(new MethodAttribute(null, bean.getEjbName(), method.getMethod())); } return declarations; }
public Map<String, List<MethodAttribute>> getExistingDeclarations() { final Map<String, List<MethodAttribute>> declarations = new HashMap<String, List<MethodAttribute>>(); final List<ConcurrentMethod> methods = bean.getConcurrentMethod(); for (final ConcurrentMethod method : methods) { List<MethodAttribute> list = declarations.get(method.getMethod().getMethodName()); if (list == null) { list = new ArrayList<MethodAttribute>(); declarations.put(method.getMethod().getMethodName(), list); } list.add(new MethodAttribute(null, bean.getEjbName(), method.getMethod())); } return declarations; }
private void processSessionInterfaces(SessionBean sessionBean, Class<?> beanClass, EjbModule ejbModule) { String ejbName = sessionBean.getEjbName();
private void processSessionInterfaces(final SessionBean sessionBean, final Class<?> beanClass, final EjbModule ejbModule) { final String ejbName = sessionBean.getEjbName();
private void processSessionInterfaces(final SessionBean sessionBean, final Class<?> beanClass, final EjbModule ejbModule) { final String ejbName = sessionBean.getEjbName();
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); } }
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); } }
public AppModule deploy(AppModule appModule) throws OpenEJBException { for (org.apache.openejb.config.EjbModule ejbModule : appModule.getEjbModules()) { OpenejbJar openejbJar = ejbModule.getOpenejbJar(); EjbJar ejbJar = ejbModule.getEjbJar(); for (EnterpriseBean enterpriseBean : ejbJar.getEnterpriseBeans()) { if (enterpriseBean instanceof SessionBean) { SessionBean sessionBean = (SessionBean) enterpriseBean; switch (sessionBean.getSessionType()) { case STATEFUL: String ejbName = sessionBean.getEjbName(); EjbDeployment ejbDeployment = openejbJar.getDeploymentsByEjbName().get(ejbName); if (null == ejbDeployment) { throw new OpenEJBException("No ejbDeployment for ejbName [" + ejbName + "]"); } ejbDeployment.setContainerId(containerId); } } } } return appModule; } }
EjbDeployment deployment = deploymentsByEjbName.get(sessionBean.getEjbName()); if (deployment == null) continue; PortComponent portComponent = portMap.get(sessionBean.getEjbName()); if (portComponent == null) { portComponent = new PortComponent(); portComponent.setPortComponentName(sessionBean.getEjbName()); serviceImplBean.setEjbLink(sessionBean.getEjbName()); portComponent.setServiceImplBean(serviceImplBean);
final EjbDeployment deployment = deploymentsByEjbName.get(sessionBean.getEjbName()); if (deployment == null) { continue; PortComponent portComponent = portMap.get(sessionBean.getEjbName()); if (portComponent == null) { portComponent = new PortComponent(); portComponent.setPortComponentName(sessionBean.getEjbName()); serviceImplBean.setEjbLink(sessionBean.getEjbName()); portComponent.setServiceImplBean(serviceImplBean);
final EjbDeployment deployment = deploymentsByEjbName.get(sessionBean.getEjbName()); if (deployment == null) { continue; PortComponent portComponent = portMap.get(sessionBean.getEjbName()); if (portComponent == null) { portComponent = new PortComponent(); portComponent.setPortComponentName(sessionBean.getEjbName()); serviceImplBean.setEjbLink(sessionBean.getEjbName()); portComponent.setServiceImplBean(serviceImplBean);
copyCallbacks(s.getPreDestroy(), bean.preDestroy); EjbDeployment d = (EjbDeployment) m.get(s.getEjbName()); if (d == null) { throw new OpenEJBException("No deployment information in openejb-jar.xml for bean " + s.getEjbName() + ". Please redeploy the jar"); bean.displayName = s.getDisplayName(); bean.ejbClass = s.getEjbClass(); bean.ejbName = s.getEjbName(); bean.home = s.getHome(); bean.remote = s.getRemote();
String name = sb.getEjbName(); String type = sb.getSessionType().toString();
final EjbDeployment d = (EjbDeployment) m.get(s.getEjbName()); if (d == null) { throw new OpenEJBException("No deployment information in openejb-jar.xml for bean " + s.getEjbName() + ". Please redeploy the jar"); bean.displayName = s.getDisplayName(); bean.ejbClass = s.getEjbClass(); bean.ejbName = s.getEjbName(); bean.home = s.getHome(); bean.remote = s.getRemote();
final EjbDeployment d = (EjbDeployment) m.get(s.getEjbName()); if (d == null) { throw new OpenEJBException("No deployment information in openejb-jar.xml for bean " + s.getEjbName() + ". Please redeploy the jar"); bean.displayName = s.getDisplayName(); bean.ejbClass = s.getEjbClass(); bean.ejbName = s.getEjbName(); bean.home = s.getHome(); bean.remote = s.getRemote();