arch@glassfish.java.net

Re: [arch] host name independence

From: Byron Nevins <Byron.Nevins_at_Sun.COM>
Date: Fri, 25 Jul 2008 13:31:56 -0700

backup-restore is pretty dumb. It knows just enough to set file
permissions properly (Java zip files lose all file properties)

The (local) hostname is set to a System Property by default so that
takes care of itself.
All the paths that WE put in domain.xml are relative to the instance
root -- which is determined at runtime.

Yes you should be able to copy a domain from one machine to another.


Bill Shannon wrote:
> Byron Nevins wrote:
>> We are there -- well at least in 9.1. E.g. you can backup a domain
>>
>> asadmin backup-domain
>>
>> and then restore it on another computer with
>>
>> asadmin restore-domain
>>
>> and everything will work.
>
> But you can't just copy the domain directory?
>
> Does the backup/restore process "fix up" references to the local
> machine, e.g., host names or path names?
>

-- 
Byron Nevins Work 408-276-4089, Home 650-359-1290, Cell 650-784-4123 - Sun Microsystems, Inc.