Why We can set only single destination type in message driven bean in EJB?
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "FileProcess"),
@ActivationConfigProperty(propertyName = "transactionTimeout", propertyValue = "3600"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "100") })
@TransactionManagement(value = TransactionManagementType.CONTAINER)
public class FileMDB implements MessageListener {
//.....
}
I want to add more than one destination type for a single MSD , Can i add more than one queue name or destination type in a MDB class?