[infinispan-dev] XML config validation not happening?

Galder Zamarreno galder.zamarreno at redhat.com
Tue Aug 11 11:00:26 EDT 2009



On 08/11/2009 04: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?

As a side note, I liked the way cache mode was previously configured via 
this combo:

- cache mode: invalidation, replication or distribution
- and <sync>/<async> elements to indicate whether it's sync or not sync.

If cache mode now incorporates sync/async works on the name itself, that 
means that when switching between sync to async and viceversa, you have 
to change two things, the cache mode name, plus the <sync>/<async> XML 
elements. This duplicity of efforts could lead to confusion and wrong 
doing by the users.

>
> Cheers,

-- 
Galder Zamarreño
Sr. Software Engineer
Infinispan, JBoss Cache



More information about the infinispan-dev mailing list