To just change the queue names, you can use a PropertyPlaceholderConfigurer...
If you mean you want to have a variable number of queues (listeners), that can't be done with XML alone; you would have to programmatically instantiate the listener containers, or, have each one in a common XML file (with placeholders) and create an application context for each. These could be made child contexts of a larger common context.
Gary P. Russell
Spring Integration Team
SpringSource, a division of VMware