Hi,

I believe there is an excellent answer in Lars's reccent blog [1], it's the good solution for dynamically change something like address for deployment time.

[1]http://lhein.blogspot.com/2008/09/servicemix-and-flexible-endpoint.html

Regards
Freeman

CheffPJ wrote:
I have thankfully gotten over the hump in developing my first SA.  Now I will
be deploying it to a test server.

What do best practices dictate as far as where/how I make updates that now
point to different physical Queues, Web Services, etc. assuming all of the
logic and schemas are not changing?

Considering the case of a large organization with overly-specialized roles
(the developer is not the builder who is not the administrator...), how can
we stay within the various roles and responsibilities?  The following are
true:
 * The administrators have the relevant environment-specific information
 * Builds/Packaging ideally happen once and are re-used across several
different environments/domains by making physical bindings configurable
 * Admins sometimes are not permitted to share binding information
 * Source code repos should contain dummy or "localhost" values

More Specifically:

 0. Am I just out of luck and have to alter the values at build-time?  If
so, I'm going to have to invest time and beer money in training admins.

 1. If an SU contains "localhost" values at build and deployment, can we use
JMX to alter the physical endpoints? If so, are those changes sticky? Also, are there any non-lazy lookups that occur at deployment time which
will break?

 2. Is there some kind of deployment context that can be hooked into in
order to use variables/interpolation within the spring/xbean files?  If so,
can these values be changed at runtime and are they sticky?

 3. Am I missing something obvious or not thinking outside the box as far as
how to best use Maven/SVN for managing "branches" of configurations
(assuming there isn't sensitive information that isn't allowed in SVN in the
first place)?

 3. For example, given an http-provider with a physical service endpoint of
"localhost," what are my options as far as where (jmx, apis, wsdl, xbean,
etc) and when (build-time, deploy-time, run-time, etc.) I can change that
address?

Thanks for this powerful tool,

Pat McDonough

Reply via email to