users@glassfish.java.net

Re: Change default ports

From: <glassfish_at_javadesktop.org>
Date: Fri, 20 Jun 2008 15:25:04 PDT

It's easy to extend this by using your own setup-ext.xml that includes setup.xml and/or setup-cluster.xml and create a target that changes the behavior of:
<target name="create.domain" depends="setup.init,set.env">
    <exec executable="${ASADMIN}" failonerror="true">
        <arg line="create-domain" />
        <arg line="--adminport ${admin.port}" />
        <arg line="--instanceport ${instance.port}" />
        <arg line="--user ${admin.user}" />
        <arg line="--passwordfile &quot;${adminpassfile}&quot;" />
        <arg line="--domainproperties orb.listener.port=${orb.port}:jms.port=${imq.port}:http.ssl.port=${https.port}" />
        <arg line="--savelogin" />
        <arg line="${domain.name}" />
    </exec>
    <delete file="${adminpassfile}" />
</target>


As you can see, this is the target and asadmin is the real command. If you see asadmin help,
you'll find that asadmin create-domain has an option called --domainproperties that takes
a bunch of other ports (the ones you've identified) and creates the domain of your choice.

HTH,

Regards,
Kedar
[Message sent by forum member 'km' (km)]

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