users@glassfish.java.net

Re: How to start the server with a disabled HTTP listener

From: <Vince.Power_at_medavie.bluecross.ca>
Date: Tue, 4 Aug 2009 13:32:50 -0300

It shouldn't be hard to catch the INIT or STARTUP life cycle event, but if
you are using a single instance of Glassfish then you don't have an
operational DAS for your AMX calls to contact and update. Also I believe
that if the HTTP listener was enabled in the configuration then even if
you had a DAS for your AMX calls to connect to it wouldn't be able to stop
the listener from starting since the container doesn't seem to get updates
from the DAS during the INIT and STARTUP stages of it's lifecycle.

But if it is possible I'd also like to know how to get it to work.

Regards,
Vince



From:
glassfish_at_javadesktop.org
To:
users_at_glassfish.dev.java.net
Date:
08/04/2009 01:16 PM
Subject:
Re: How to start the server with a disabled HTTP listener



Thanks for the answer, but I want to avoid hacking the domain.xml.

I would like to implement the LifeCycleListener interface and on the
startup event,
get hold of the DomainRoot and disable the http listener using AMX.

How do I access the AMX DomainRoot from [i]inside[/i] of the Glassfish
server?
[Message sent by forum member 'jthoennes' (jthoennes)]

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

---------------------------------------------------------------------
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.
-----------------------------------------------------------------------