private String createContainer(final Class<? extends ContainerInfo> containerInfoType, final EjbDeployment ejbDeployment, final EnterpriseBean bean) throws OpenEJBException { if (!autoCreateContainers) { throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName()); } // get the container info (data used to build the container) final ContainerInfo containerInfo = configFactory.configureService(containerInfoType); logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")"); // if the is an MDB container we need to resolve the resource adapter final String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter"); if (resourceAdapterId != null) { final String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null); if (resourceAdapterId.equals(newResourceId)) { containerInfo.properties.setProperty("ResourceAdapter", newResourceId); } } // install the container configFactory.install(containerInfo); return containerInfo.id; }
private String createContainer(final Class<? extends ContainerInfo> containerInfoType, final EjbDeployment ejbDeployment, final EnterpriseBean bean) throws OpenEJBException { if (!autoCreateContainers) { throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName()); } // get the container info (data used to build the container) final ContainerInfo containerInfo = configFactory.configureService(containerInfoType); logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")"); // if the is an MDB container we need to resolve the resource adapter final String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter"); if (resourceAdapterId != null) { final String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null); if (resourceAdapterId.equals(newResourceId)) { containerInfo.properties.setProperty("ResourceAdapter", newResourceId); } } // install the container configFactory.install(containerInfo); return containerInfo.id; }
private String createContainer(Class<? extends ContainerInfo> containerInfoType, EjbDeployment ejbDeployment, EnterpriseBean bean) throws OpenEJBException { if (!autoCreateContainers) { throw new OpenEJBException("A container of type " + getType(bean) + " must be declared in the configuration file for bean: " + bean.getEjbName()); } // get the container info (data used to build the container) ContainerInfo containerInfo = configFactory.configureService(containerInfoType); logger.info("Auto-creating a container for bean " + ejbDeployment.getDeploymentId() + ": Container(type=" + getType(bean) + ", id=" + containerInfo.id + ")"); // if the is an MDB container we need to resolve the resource adapter String resourceAdapterId = containerInfo.properties.getProperty("ResourceAdapter"); if (resourceAdapterId != null) { String newResourceId = getResourceId(ejbDeployment.getDeploymentId(), resourceAdapterId, null, null); if (resourceAdapterId != newResourceId) { containerInfo.properties.setProperty("ResourceAdapter", newResourceId); } } // install the container configFactory.install(containerInfo); return containerInfo.id; }
final String refType = getType(ref, ejbModule.getClassLoader());
final String refType = getType(ref, ejbModule.getClassLoader());
final String refType = getType(ref, classLoader);
final String refType = getType(ref, classLoader);
Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(getType(bean)); if (ejbDeployment.getContainerId() == null && !skipMdb(bean)) { String containerId = getUsableContainer(containerInfoType, bean, appResources);
final Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(getType(bean)); if (ejbDeployment.getContainerId() == null && !skipMdb(bean)) { String containerId = getUsableContainer(containerInfoType, bean, appResources);
final String beanType = getType(bean); final Class<? extends ContainerInfo> containerInfoType = ConfigurationFactory.getContainerInfoType(beanType); logger.debug("Bean type of bean {0} is {1}", bean.getEjbName(), beanType);