You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by angeloNZ <an...@nz.fujitsu.com> on 2009/05/08 00:53:32 UTC
Recommendations for building SA for different environments
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.
Re: Recommendations for building SA for different environments
Posted by Gert Vanthienen <ge...@gmail.com>.
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 <an...@nz.fujitsu.com>:
>
> 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.
>
>
Re: Recommendations for building SA for different environments
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Angelo,
With maven, you can use profile to define a build behavior.
In your case, you can define a resources folder per environment
(production, testing, etc) and create a profile per environment.
In the profile, you define the corresponding resources folder.
After you can do something like:
mvn -Ptesting install
or
mvn -Pproduction install
You can "tag" your SA using a classifier. Your profiles can use
classifier to include the profile name in the SA file name.
Regards
JB
angeloNZ wrote:
> 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.
--
Jean-Baptiste Onofré
---------------------------------
HomePage
http://www.nanthrax.net
---------------------------------
Contacts
jbonofre@apache.org
jb@nanthrax.net
---------------------------------
OpenSource
BuildProcess/AutoDeploy
http://buildprocess.sourceforge.net
Apache ServiceMix
http://servicemix.apache.org
-----------------------------------
PGP : 17D4F086