dev@glassfish.java.net

Re: preventing install/domain mismatches

From: Sony Manuel <Sony.Manuel_at_Sun.COM>
Date: Wed, 29 Nov 2006 12:40:39 +0530

vince kraemer wrote:
> I need to prevent users from using the bits associated with one
> version of the server from starting a domain created for a different
> version of the server.
>
> Here is the method that I think will work, but it is very assumption
> heavy... Is there a better way to do this?
>
> input: a domain's "root" directory and and installation's root directory
>
install-root/config/asenv.conf has a variable AS_DEF_DOMAINS_PATH.
Wouldn't the value of this always be the domain root directory?

- Sony

> 1. get the System ID for the domain.xml document.
>
> 2. see if there is a dtd, with a name that matches the dtd named in
> the System ID of the domain.xml document, in the install-root/lib/dtds
>
> If there is a file with a matching name, I assume the domain IS
> compatible with the installation...
>
> If there isn't a matching file, or just about any other failure, I
> assume the domain IS NOT compatible with the installation...
>
> vbk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>