Develop > Business logic layer > Work with the data service layer


Overview of the get-data-config.xml file

The get-data-config.xml file is used to configure expression builders that are used by the getData JSTL tag configured by the WebSphere Commerce getData action. When using the getData data, you specify an expression builder name and a data-type-name. This information is used when looking up the configuration in the get-data-config.xml file to determine which XPath Expression to execute.

You should:

The get-data-config.xml configuration files must adhere to the following rules:

All paths in this file are relative to the installed location of the Web application, such as the Portlet WAR (MVCPortlet.war).

All expression builders are defined in the get-data-config.xml files. The data-type element declares a supported data type for the getData action. The client-facade element declares the component client facade that invokes the service to fetch the data. The expression builder handles building the XPath expression with the published input parameters.

Each expression builder has the following properties:

The pre-built get-data-config.xml file contains:

Extend the get-data-config file can also change the behavior of business components. For example, the Catalog component, by default, enables search by part number and name (case sensitive). You can change this behavior to only enable catalog searching by part number, or to only allow searching by name, to improve the performance of the site searches.

The Management Center Web applications uses the get-data-config.xml file to configure the wcf:getData tag defined in the Get controller JSPs, and define:


+

Search Tips   |   Advanced Search