vince kraemer wrote:
> Bill Shannon wrote:
>
>>
>> Since every new version of the app server should support the domain.xml
>> from older versions, either directly or through automatic invocation of
>> the upgrade tool, you're largely trying to prevent "new" domains from
>> being used by "old" app servers, is that correct?
>
>
> yes.
>
>> If so, checking that
>> the DTD/schema for the domain.xml is one of the versions supported by
>> the app server seems like a reasonable approach.
>
>
> Is there an API that does this check, or am I just going to have to hope
> that all the assumptions will remain valid... [things like the location
> of the dtds directory....]
That I don't know.
If we were validating the domain.xml, the validation framework would have
to know how to figure out which DTD to validate it against. Is there some
code that does this for the Java EE deployment descriptors that you could
reuse? If you can't find a DTD to validate it against, you would fail.