Author: chris.laprun(a)jboss.com
Date: 2011-03-18 12:23:56 -0400 (Fri, 18 Mar 2011)
New Revision: 6098
Modified:
components/wsrp/branches/2.0.x/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/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java
===================================================================
---
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java 2011-03-18
16:19:46 UTC (rev 6097)
+++
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/AbstractProducerConfigurationService.java 2011-03-18
16:23:56 UTC (rev 6098)
@@ -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)
{
Show replies by date