I think that the Java EE spec says this kind of stuff so I guess we could potentially put a comment in the spec that states this as well.
Thanks,
-Mike
-----Original Message-----
From: Sanjeeb.Sahoo_at_Sun.COM [mailto:Sanjeeb.Sahoo_at_Sun.COM]On Behalf Of Sanjeeb Kumar Sahoo
Sent: Friday, March 10, 2006 6:21 AM
To: Mike Keith
Cc: persistence_at_glassfish.dev.java.net; Linda Demichiel; Bill Shannon
Subject: Validation of XML DD for persistence api
Hi Mike,
I don't recollect to have seen any requirement about validation of deployment descriptors in Java Persistence API spec. So, in Java SE, is a provider not required to validate persistence.xml and orm.xml? We should add this restriction in the spec.
In Java EE we have a slightly different problem. As per the Java EE platform rules, XML deployment descriptors must be validated against corresponding dtd/schema during deployment. Question is who is responsible for this validation? My assumption is that container must validate persistence.xml and persistence provider must validate mapping xml(orm.xml). Is this a correct assumption?
During a discussion with Marina, this issue came up. We felt it is necessary to get a clarification on this regard.
TopLink Essential does not validate any of them. See bugs:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=384 and
https://glassfish.dev.java.net/issues/show_bug.cgi?id=385
Thanks,
Sahoo