Migration from 3.1 to 3.2.0-GA
Spring Session update for multi-customer assisted shopping
The Spring Session dependency has moved from a required dependency (that gets pulled in transitively) to an optional dependency. If you are reliant on the Multi Customer Assisted Shopping feature, you will need to add this dependency yourself to your pom.xml:
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
<version>1.3.1.RELEASE</version>
</dependency>
The Spring Session dependency has also been upgraded from 1.2.1.RELEASE to 1.3.1.RELEASE. As a result, we have deleted a hotfix patch class BroadleafCookieHttpSessionStrategy
since it has been resolved in 1.3.1.RELEASE. We now assume that you are using the Spring Session default, CookieHttpSessionStrategy
. Look for the following configuration of the BroadleafJdbcHttpSessionConfiguration
(or your custom implementation):
<bean id="blCookieHttpSessionStrategy" class="com.broadleafcommerce.enterprise.csr.web.http.BroadleafCookieHttpSessionStrategy"/>
<bean class="com.broadleafcommerce.enterprise.csr.web.http.BroadleafJdbcHttpSessionConfiguration">
<property name="httpSessionStrategy" class="blCookieHttpSessionStrategy"/>
<property name="dataSource" ref="webDS"/>
<property name="tableName" value="BLC_SPRING_SESSION"/>
</bean>
Remove the httpSessionStrategy
property along with the bean definition for BroadleafCookieHttpSessionStrategy
. We have also converted BroadleafJdbcHttpSessionConfiguration
to use constructor arguments instead of properties and defaulted the table name, so you are left with:
<bean class="com.broadleafcommerce.enterprise.csr.web.http.BroadleafJdbcHttpSessionConfiguration">
<constructor-arg name="dataSource" ref="webDS"/>
</bean>
The MultiSessionThymeleafResolverExtensionHandler
class has been renamed to MultiSessionTemplateResolverExtensionHandler
. Any bean definitions for this class will need to be renamed from:
<bean id="blMultiSessionThymeleafResolverExtensionHandler" class="com.broadleafcommerce.enterprise.csr.web.extension.MultiSessionThymeleafResolverExtensionHandler"/>
to:
<bean id="blMultiSessionTemplateResolverExtensionHandler" class="com.broadleafcommerce.enterprise.csr.web.extension.MultiSessionTemplateResolverExtensionHandler"/>