L.S., I usually try to avoid renaming all the endpoints when moving a SA between environments. These are usually completely different containers so there's no problem in using the same endpoint name on all of them, just changing the definition of the endpoints that send/receive the messages will allow you to do the testing/staging you want.
For changing the definition, you can either use: - Spring property placeholders with properties read from a file, which will fill in the placeholders at runtime - Maven resource filtering, replacing the placeholders at build time using a few build profiles to provide values for the properties Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/5/8 angeloNZ <[email protected]>: > > Hi, > > I'd like to get some recommendations as how best to build the SA for > different environments (integration, system test, production). For example, > I want to have different property files for system test and production and I > want my xbean.xml for my Binding component definitions to be able to use the > appropriate property file as the SA is being built. I already know how to > define a propertyConfigurer in my xbean to include a property file and have > some consumer/provider attributes read off the file. What I'm interested in > is, when building the SA, how do we tell it to say, read off from the > production property file? Is this something we can indicate when running > the mvn install command? > > The xbean.xml should also have namespace definitions that should match the > namespace from the wsdl file of your external web service. I know from > trying that you cannot read off the namespace value from a property file > from the main <beans> element. This does not work: > > <beans xmlns:x="${namespace.from.propertyfile}" ...> > > how do we deal with namespace definitions when building the SA dynamically? > do we need to have xbean definitions per environment? > > Thanks for your inputs. > -- > View this message in context: > http://www.nabble.com/Recommendations-for-building-SA-for-different-environments-tp23436972p23436972.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
