Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

It is often necessary to provide create application configuration that varies by runtime environment. For example, service endpoint URLs, JMS connection information, and JDBC data source URLs may differ for testing and production environments.

To satisfy these requirments, Fabric3 provides named environments for composite activation and the ability to define configuration templates for use in a composite file.

...

Stubbing Binding Templates in Testing

...

Sometimes it is necessary to stub out a binding template for testing. For example, a component may take an optional reference that must be explicitly bound to an external service. The composite containing the component contains a binding template configuration. For testing, the external service is not needed. The binding template can be defined using a blank binding.sca, which will result in no binding being applied to the reference:

...