public Class getMdbInterface() { return getDeploymentInfo().getMdbInterface(); }
public void deploy(final BeanContext beanContext) throws OpenEJBException { final Object deploymentId = beanContext.getDeploymentID(); if (!beanContext.getMdbInterface().equals(messageListenerInterface)) { throw new OpenEJBException("Deployment '" + deploymentId + "' has message listener interface " + beanContext.getMdbInterface().getName() + " but this MDB container only supports " + messageListenerInterface); } // create the activation spec final ActivationSpec activationSpec = createActivationSpec(beanContext); final EndpointFactory endpointFactory = new EndpointFactory(activationSpec, this, beanContext, null, instanceManager, xaResourceWrapper, true); // update the data structures // this must be done before activating the endpoint since the ra may immedately begin delivering messages beanContext.setContainer(this); deployments.put(deploymentId, beanContext); try { instanceManager.deploy(beanContext, activationSpec, endpointFactory); } catch (OpenEJBException e) { beanContext.setContainer(null); beanContext.setContainerData(null); deployments.remove(deploymentId); throw new OpenEJBException(e); } }
methods.addAll(exclude(beanMethods, info.getLocalHomeInterface().getMethods())); if (info.getMdbInterface() != null) { methods.addAll(exclude(beanMethods, info.getMdbInterface().getMethods()));
methods.addAll(exclude(beanMethods, info.getLocalHomeInterface().getMethods())); if (info.getMdbInterface() != null) { methods.addAll(exclude(beanMethods, info.getMdbInterface().getMethods()));
public void deploy(final BeanContext beanContext) throws OpenEJBException { final Object deploymentId = beanContext.getDeploymentID(); if (!beanContext.getMdbInterface().equals(messageListenerInterface)) { throw new OpenEJBException("Deployment '" + deploymentId + "' has message listener interface " + beanContext.getMdbInterface().getName() + " but this MDB container only supports " + messageListenerInterface);
public void deploy(final BeanContext beanContext) throws OpenEJBException { final Object deploymentId = beanContext.getDeploymentID(); if (!beanContext.getMdbInterface().equals(messageListenerInterface)) { throw new OpenEJBException("Deployment '" + deploymentId + "' has message listener interface " + beanContext.getMdbInterface().getName() + " but this MDB container only supports " + messageListenerInterface);
if (MessageListener.class.equals(bean.getMdbInterface())) {
if (MessageListener.class.equals(bean.getMdbInterface())) {