Different data views can be used in the same topology to expose or hide parts of a subtree. Figure 17–8 shows are an example with data views that combine the hierarchy shown in Figure 17–7 with the distribution algorithms shown in Figure 17–6.
The example in Figure 17–8 contains four data views. The base DN of data view 1 is superior to the base DNs of the other data views. Data view 3 and data view 4 have the same base DN, but a numeric distribution algorithm separates entries into the different data views. Figure 17–8 shows the example deployment.
The excluded-subtrees property on dataview-1 excludes the other data views from dataview-1. The alternate-search-base-dn property on dataview-2, dataview-3, and dataview-4 includes these data views in search operations targeted at dataview-1.
Directory Proxy Server exposes a request to the data view which satisfies the following conditions:
The DN targeted by the request is subordinate to the base DN of the data view
The DN targeted by the request is not excluded from the data view by the excluded-subtrees parameter
The parameters of the requests match the pattern specified by the distribution algorithm
When a request is exposed to a data view, the request is forwarded to the data source pool specified by the data view.
If a request does not match the conditions of any data view, Directory Proxy Server returns an error.
For information about how to configure a complex data view, see Data Views With Hierarchy and a Distribution Algorithm in Sun Java System Directory Server Enterprise Edition 6.1 Administration Guide.