You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

How Configuration works in CXF

TODO

Rules of Configuration

Please follow the following guidelines when writing configuration related code in CXF.

1. Keep in mind all your users.
We have three configuration scenarios that we worry about.
1. Spring 2.0 Configuration Files
2. API users
3. Configuration embedded in the WSDL

2. Don't hide configuration objects in private fields, make it available via the API
Remember that a lot of users won't touch XML configuration. Example: a user creates a Client and they want to change the proxy server. We should make this as easy as possible instead of forcing them to use XML or navigate a bunch of objects.

3. Use new namespaces sparingly
When users write configuration for a component they don't want to have to worry if its in one namespace or the other. For instance, instead of dividing JMS configuration into many different namespaces, use just one so users only need to add one namespace to their configuration file.

4. When writing XML schemas start elements and attributes with lower case letters
Instead of "<Conduit ConnectionTimeout="300">" we prefer "<conduit connectionTimeout="300">"

  • No labels