[jboss-user] [JBoss Messaging] - Can I externalize user, password and destination?

Gunnar Bostrom do-not-reply at jboss.com
Thu Aug 26 04:36:10 EDT 2010

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

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?



Reply to this message by going to Community

Start a new discussion in JBoss Messaging at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100826/52558c0b/attachment.html 

More information about the jboss-user mailing list