Gunnar Bostrom [http://community.jboss.org/people/gunnarbos] created the 
discussion

"Can I externalize user,password and destination?"

To view the discussion, visit: http://community.jboss.org/message/559087#559087

--------------------------------------------------------------
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
[http://community.jboss.org/message/559087#559087]

Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to