Fix issue when setting the default serializer in compoenent activation
@@ -350,8 +350,10 @@ public class FrameworkServiceComponent {
// Set user session mapping enabled.
FrameworkServiceDataHolder.getInstance().setUserSessionMappingEnabled(FrameworkUtils
.isUserSessionMappingEnabled());
+ if (FrameworkServiceDataHolder.getInstance().getSessionSerializer() == null) {
FrameworkServiceDataHolder.getInstance().setSessionSerializer(new JavaSessionSerializer());
}
+ }
@Deactivate
protected void deactivate(ComponentContext ctxt) {
@@ -482,6 +484,7 @@ public class FrameworkServiceComponent {
+ sessionSerializer.getClass().getName());
}
FrameworkServiceDataHolder.getInstance().setSessionSerializer(sessionSerializer);
+ log.info("Session serializer got registered: " + sessionSerializer.getClass().getName());
}
protected void unsetSessionSerializer(SessionSerializer sessionSerializer) {
