Youcef LAIDANI
Youcef LAIDANI

Reputation: 60045

Change port of domain GlassFish using asadmin

Is there any way or command to change the port 4848 to 4949 of Glassfish?

N.B

I don't want to change it from domain.xml

Upvotes: 4

Views: 10087

Answers (1)

unwichtich
unwichtich

Reputation: 13857

Try the following:

asadmin set configs.config.server-config.network-config.network-listeners.network-listener.admin-listener.port=4949

or

asadmin set server.http-service.http-listener.admin-listener.port=4949

to change the port of the "admin" HTTP listener which is configured in Glassfish. To change the port of the "main" port, change "admin-listener" in the command to "http-listener-1".

Upvotes: 4

Related Questions