users@glassfish.java.net

Re: How to "clone" a Glassfish domain

From: <glassfish_at_javadesktop.org>
Date: Mon, 29 Jun 2009 21:57:09 PDT

Hi,

i think the best way to do it is to use --template option in asadmin create domain command (http://docs.sun.com/app/docs/doc/819-3675/create-domain-1?a=view).

1. Take copy of your domain.xml file, which u want to clone
2. You must change the ports of asadmin, domain that you specify, for example like following
        <http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" [b]port="9999"[/b] security-enabled="false" server-name="" xpowered-by="true">
          <property name="proxiedProtocols" value="ws/tcp"/>
        </http-listener>

3. Then from ur SJSAS , bin folder, execute asadmin create-domain command with --template <path here>/domain.xml

Good Luck....
[Message sent by forum member 'chameera' (chameera)]

http://forums.java.net/jive/thread.jspa?messageID=353513