Spring framework extension file (spring-extension.xml)
The spring-extension.xml file is provided for you to use to override existing URL mappings or to define new mappings to customize Management Center objects.
When you need to change or create a URL mapping within the Spring framework always use this spring-extension.xml extension file to define your custom mappings. Do not modify any spring-ibm-component.xml files that are provided by default for each Management Center component. The Spring extension file takes precedence over all other Spring configuration files when you add configurations for objects that are defined in the other files. By including all of your custom configurations within this file, you can ensure that your customizations are not overwritten when you apply maintenance or upgrade HCL Commerce.
<?xml version="1.0" encoding="UTF-8"?>
1<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<!--
To enable Single Sign On, uncomment the following Logon, Logout and ResolveIdentity controller configurations.
-->
<!--
2 <bean id="/Logon" class="com.ibm.commerce.foundation.client.lobtools.spring.AuthenticationClientLibraryController">
3 <property name="urlObject" value="Person"/>
<property name="contextParameters">
4 <props>
<prop key="channelId">channelId</prop>
</props>
</property>
<property name="clientLibrary" value="com.ibm.commerce.member.facade.client.MemberFacadeClient"/>
<property name="clientLibraryMethod" value="authenticatePassword"/>
<property name="aliasParameters">
<props>
<prop key="password">logonPassword</prop>
</props>
</property>
<property name="generateLTPAToken" value="true"/>
<property name="successView" value="/jsp/commerce/shell/restricted/AuthenticationSuccess.jsp"/>
<property name="failureView" value="/jsp/commerce/shell/restricted/AuthenticationFailed.jsp"/>
</bean>
- 1
<beans>
- The top-level element that must be included in all Spring framework configuration files. Do not include any other elements at this level in your spring-extension.xml file.
- 2
<bean>
- Each controller or view resolver configuration must be defined within a separate
bean definition or
<bean>
element.id
- The value that identifies the configuration. This value must match the value for the URL request within the definition file that defines the object or service.
class
- The controller class that is to be used to process the request.
- 3
<property>
- Information to pass to the controller about the Management Center object, and
about how the Spring framework is to process the request. For example, properties can
be configured to indicate the JSP files to use for resolving views, or to indicate the
action that is to performed on an object, such as to create, change, or delete the
object.
name
- The name of the property. This attribute cannot be null.
value
- The value of the property.
- 4
<props>
- Additional information to pass to the controller for a configured
<property>
element. Each property for the property is configured as a separate<prop key="parameter_nam">value</prop
subelement within the<props>
subelement. For example, you can use a<props>
element and multiple<prop>
subelements to include a list of context or default parameter values.- key
- The name of the property or parameter, such as
storeId
, orlangId
.
When you need to modify the spring-extension.xml file, you are recommended to make and test your changes within HCL Commerce Developer in your development environment and then deploy the changes to your production environment.
For more information about creating controller configurations, see Customizing controller configurations.