[infinispan-dev] XML config validation not happening?
Vladimir Blagojevic
vblagoje at redhat.com
Tue Aug 11 11:02:49 EDT 2009
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.
More information about the infinispan-dev
mailing list