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
Cheers.
--
Galder ZamarreƱo
Sr. Software Engineer
Infinispan, JBoss Cache