Author: chris.laprun(a)jboss.com
Date: 2011-03-18 12:26:02 -0400 (Fri, 18 Mar 2011)
New Revision: 6099
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java
Log:
- GTNWSRP-213, JBEPP-857: make sure that strict mode is properly restored at startup.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java 2011-03-18
16:23:56 UTC (rev 6098)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java 2011-03-18
16:26:02 UTC (rev 6099)
@@ -25,6 +25,7 @@
import org.gatein.registration.RegistrationPolicyChangeListener;
import org.gatein.registration.RegistrationPropertyChangeListener;
+import org.gatein.wsrp.producer.WSRPValidator;
import org.gatein.wsrp.producer.config.ProducerConfiguration;
import org.gatein.wsrp.producer.config.ProducerConfigurationChangeListener;
import org.gatein.wsrp.producer.config.ProducerConfigurationService;
@@ -72,6 +73,10 @@
// reload
loadConfiguration();
+ // make sure that we set strict mode on things which need to know about it
regardless of listeners (which might
+ // not exist when this method is called, as is the case at startup)
+ WSRPValidator.setStrict(configuration.isUsingStrictMode());
+
// restore listeners and trigger them if requested
if (listeners != null)
{