I have the following MDB configuration
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "destinationJndiName", propertyValue = "jms/test/log"),
@ActivationConfigProperty(propertyName= "destination", propertyValue="jms_test_log"),
@ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="Auto-acknowledge"),
@ActivationConfigProperty(propertyName="addressList", propertyValue="mq://test.server.co.uk:7676"),
@ActivationConfigProperty(propertyName = "maxSession", propertyValue = "10")
})
@TransactionManagement(TransactionManagementType.BEAN)
public class DownloadListener implements MessageListener { ....
I wish to be able to set addressList property dynamically. The values will be from an initial setup properties files and from a future admin console. As it is out of the class decleration I am unable to simply assign a variable.
I have seen that you can add these values into an xml file of sorts but it seems to be vendor dependant e.g. JBoss. I don't want to strap this down to one vendor. I need it to open in that way.
I have looked around and I am unable to find anything that suggests I could do such a thing. Is it possible to set up the configuration in something like a setup method?