JBoss Community

Can I externalize user,password and destination?

created by Gunnar Bostrom in JBoss Messaging - View the full discussion

Hi,

I'm using 1.4.3.GA Messaging to listen to a JMS queue.

It works fine but I need to externalize user, password and destination from my application.

 

I use declarative style like this

@MessageDriven(activationConfig = {

        @ActivationConfigProperty(propertyName = "destination", propertyValue = "DEST"),
        @ActivationConfigProperty(propertyName = "user", propertyValue = "USER"),
        @ActivationConfigProperty(propertyName = "password", propertyValue = "PWD"),
.....
}

public class MDB implements MessageListener {

 

How can we put the values in an external file so we don't need to make code changes for different environments?

 

Regard

Gunnar

Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community