On 11 Aug 2009, at 16:06, Galder Zamarreno wrote:
On 08/11/2009 05:02 PM, Vladimir Blagojevic wrote:
> On 8/11/09 4:53 PM, Galder Zamarreno wrote:
>> Hi Vladimir,
>>
>> Is there any xsd validation happening in the XML configuration
>> processing in Infinispan trunk? The reason I'm asking is by
>> mistake, my
>> sample 2nd level cache definitions where using "invalidation" and
>> "REPL"
>> as cache modes, and these are not valid cache modes as per
>> infinispan-config-4.0.xsd.
>>
>> However Infinispan, rather than barfing something saying that the
>> configuration is incorrect, it set the incorrect cache modes to null
>> hence causing other issues.
>>
>> Any chance of adding/enabling some validation? Or has this been
>> disabled
>> until you've done some further work?
>>
>> Cheers,
> Hey Galder,
>
> All you have to do is use InfinispanConfiguration factory method that
> points to a valid schema. That way you explicitly turn on validation.
Hmmm, this should be on by default:
https://jira.jboss.org/jira/browse/ISPN-154
There should be a way to disable validation as well. E.g., line 82 in:
http://fisheye.jboss.org/browse/JBossCache/core/trunk/src/main/java/org/j...
Cheers
Manik
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org