Maybe not the best way to accomplish what you want, but if you are running
a default glassfish install with no clustering or anything then you could
just run a sed command on domain.xml before you start the domain.
sed -e 's/<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" port="8080" security-enabled="false"
server-name="" xpowered-by="true">/<http-listener acceptor-threads="1"
address="0.0.0.0" blocking-enabled="false" default-virtual-server="server"
enabled="false" family="inet" id="http-listener-1" port="8080"
security-enabled="false" server-name="" xpowered-by="true">/' domain.xml >
domain.tmp && mv domain.tmp domain.xml
Regards,
Vince
From:
glassfish_at_javadesktop.org
To:
users_at_glassfish.dev.java.net
Date:
08/04/2009 11:48 AM
Subject:
How to start the server with a disabled HTTP listener
We want to start the Glassfish server with a disabled HTTP listener and
enable it later when our application framework is completely started. But
using the asadmin command we can disable the listener only when the server
is fully started:
asadmin ... set
server.http-service.http-listener.http-listener-1.enabled=false
We could also issue this command before the server is shut down in order
to have it disabled on next start. But if the server crashes this listener
would stay enabled.
Is there any way to disable the listener during server startup, ie using a
life cylce module and some AMX calls?
Being grateful for any pointers, Jörg
[Message sent by forum member 'jthoennes' (jthoennes)]
http://forums.java.net/jive/thread.jspa?messageID=358794
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net
-----------------------------------------------------------------------
This communication, including any attached documentation, is intended only for the person or entity to which it is addressed, and may contain confidential, personal, and/or privileged information. Any unauthorized disclosure, copying, or taking action on the contents is strictly prohibited. If you have received this message in error, please contact us immediately so we may correct our records. Please then delete or destroy the original transmission and any subsequent reply. Thank you.
La présente communication, y compris toute pièce qui y a été jointe, est destinée uniquement à la personne ou à l’entité à laquelle elle a été adressée, et contient des renseignements à caractère confidentiel et personnel. Toute diffusion ou reproduction non autorisée ou toute intervention entreprise relativement à son contenu est strictement interdite. Si vous avez reçu ce message par erreur, veuillez nous le signaler immédiatement afin que nous puissions effectuer la correction à nos dossiers. Veuillez par la suite supprimer ou détruire le contenu de la transmission originale ainsi que toute réponse ultérieure. Merci.
-----------------------------------------------------------------------