users@glassfish.java.net

Re: create new domain

From: Sankar Neelakandan <Sankar.Neelakandan_at_Sun.COM>
Date: Sun, 26 Oct 2008 14:44:51 -0700

Ravi,
      If you are using the --template option the --adminport
--instanceport --portbase options will not have any effect. It is very
likely that your existing domain(running domain) port configuration is
in your template domain.xml as well. Unless you have a custom template
domain.xml you don't need to use --template option. Simply use the
--adminport/--instanceport options or --portbse option like below. If
you must use your template domain.xml to create the domain, modify the
template domain.xml with your desired ports.

/app/demantra/glassfish/bin/asadmin create-domain --domaindir
/app/demantra/glassfish/domains --user admin --adminport 4849
--instanceport 8081 --savelogin=true demnatra-uat
or
/app/demantra/glassfish/bin/asadmin create-domain --domaindir
/app/demantra/glassfish/domains --user admin --portbase 10000
--savelogin=true demnatra-uat


-Sankar

Ravikumar Neti wrote:
> Thanks Alexis,
> I am not sure how to use --portbase argument, please can you modify
> the below command according to your suggestion.
>
> /app/demantra/glassfish/bin/asadmin create-domain --domaindir
> /app/demantra/glassfish/domains --user admin --adminport 4849
> --instanceport 8081 --savelogin=true --template
> /home/demantra/src/java/glassfish/demantra-domain.xml.template
> demnatra-uat
>
> Thanks,
> Ravi
> x40193
>
>
> Alexis Moussine-Pouchkine wrote:
>> Consider using the --portbase argument when creating the domain.
>> There are more ports used that just HTTP and admin.
>> -Alexis
>>
>> On Oct 26, 2008, at 9:59, Ravikumar Neti wrote:
>>
>>> Hi All,
>>> I want to create a new one more glass fish domain for existing
>>> installed glass fish app server. I used below command create new
>>> domain but my problem is both the instances are not running in
>>> parallel. If one instance up, I am not able to restart other.
>>>
>>> /app/demantra/glassfish/bin/asadmin create-domain --domaindir
>>> /app/demantra/glassfish/domains --user admin --adminport 4849
>>> --instanceport 8081 --savelogin=true --template
>>> /home/demantra/src/java/glassfish/demantra-domain.xml.template
>>> demnatra-uat
>>>
>>>
>>> Please suggest.
>>>
>>> Thanks,
>>> Ravi
>>> x40193
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>