dev@glassfish.java.net

Re: support for specifying port to asadmin deploy

From: Vivek Pandey <Vivek.Pandey_at_Sun.COM>
Date: Fri, 23 May 2008 16:47:00 -0700

Kedar Mhaswade wrote:
> Starting a domain with one or more http-listeners listening to ports
> accepted
> from "command line" (and overrides those specified in configuration)is
> not yet
> supported.

Are you guys planning to provide such support? I need it for
https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964.
> Thus, startup of a domain gathers
> this information (e.g. like port) from domain.xml. So, if you want
> your domain
> to listen on a port other than default (8080), you have two choices:
> 1- edit domain.xml and change the port of http-listener-1.
> 2- create a separate domain specifying a port of your choice.
> 3- asadmin start-domain
>

Above is what user is trying and with gem kind of usage it is too much
when you try to fire-up gem instances dynamically thru some load balancer.
> That was for the server.
>
> Most of the asadmin commands are admin client commands. They work by
> communicating a server on an HTTP port specified on the command line.
> I agree that we could have done better by separating asadmin options from
> command options, but till we get there, you have to specify the
> command options
> as:
>
> asadmin command-name command-options-including-host-port-etc.
>
> Thus, if you have set the port to say 9090, you would use deploy
> command as:
>
> asadmin deploy --port 9090 myjrubyapp.war
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964
> We are thinking of respecting "asadmin --port 9090 deploy myjrubyapp.war"
> kind of syntax as well.

Anyway, looks like the kind of usage I am looking for would not work
now. When do you plan to add such support?

-vivek.
>
> Regards,
> Kedar
>
>
> Vivek Pandey wrote:
>> I was talking about this issue[1] with Jerome and he mentioned that
>> there is already support to specify port. When I do asadmin --help, I
>> see
>>
>> -p --port
>>
>> The HTTP port or HTTPS port for administration. This
>> port is the port in the URL that you specify in your web
>> browser to manage the domain, for example,
>> http://localhost:8080/admin.
>>
>>
>> So I try to start asadmin by giving -p argument but it fails:
>>
>> -------
>> vivekmz_at_boson(543)> ./bin/asadmin -p 3000 start-domain
>> Remote server does not listen for requests on [boson:8,080].
>> Is the server up?
>> Command -p failed.
>> -----
>>
>> How am I supposed to use it? Or this is not something meant to be
>> used to start the server with user defined port number? The
>> description is confusing and not sure what it is intended for.
>>
>> I need such feature from admin-cli for the gem.
>>
>> -vivek.
>>
>> [1]https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964
>> ./bin/
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>