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.
Cheers.