1 25 26 package org.objectweb.jonas.container; 27 28 import java.util.Set ; 29 import org.objectweb.jonas_ejb.deployment.api.MessageDrivenDesc; 30 31 import org.objectweb.jonas_ejb.container.JMdbFactory; 32 import org.objectweb.jonas_ejb.container.JMdbEndpointFactory; 33 34 39 public class MessageDrivenBean extends EJB { 40 41 45 public MessageDrivenBean(String objectName, JMdbFactory factoryToManage) { 46 super(objectName, factoryToManage); 47 } 48 49 53 public MessageDrivenBean(String objectName, JMdbEndpointFactory factoryToManage) { 54 super(objectName, factoryToManage); 55 } 56 57 60 public String getMdbJMSAssociateDestinationName() { 61 return ((MessageDrivenDesc)ejbToManage.getDeploymentDescriptor()).getDestinationJndiName(); 62 } 63 64 68 public Set getAllJMSDestinationName() { 69 Set result = super.getAllJMSDestinationName(); 71 result.add(getMdbJMSAssociateDestinationName()); 72 return result; 73 } 74 } 75 | Popular Tags |