users@glassfish.java.net

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

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Tue, 4 Aug 2009 13:46:17 -0400

Mssr Power:

could you explain what DAS is.. and how it is used (or not) in this context?

merci
Martin Gainty
United Health Group 2002-2003
deNovis Medical Systems 2004-2005
Curaspan~the eDischarge Company 2006
______________________________________________
Note de déni et de confidentialité
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




To: users_at_glassfish.dev.java.net
From: Vince.Power_at_medavie.bluecross.ca
Date: Tue, 4 Aug 2009 13:32:50 -0300
Subject: Re: How to start the server with a disabled HTTP listener

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.orgTo:users_at_glassfish.dev.java.netDate:08/04/2009 01:16 PMSubject: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.

-----------------------------------------------------------------------

_________________________________________________________________
Get your vacation photos on your phone!
http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM