Type: New Feature
Affects Version/s: None
Fix Version/s: None
Number of attachments :
I have previously investigated how to announce web applications with ZeroConf/Bonjour/Rendezvous which are immediately visible in Safari or Internet Explorer with Bonjour toolbar.
The method described in
JETTY-505 is feasible, but has two serious shortcomings.
1) I could not easily figure out how to create the absolute URL to announce (which may rely on which virtual hosts the web application is bound to etc), and the information is not available in the Context information as specified in the standard. Hence it is web container specific intrinsicly anyway.
2) As far as I have understood, jmdns spawns additional threads which the web container is not told about. This is undesirable.
Therefore I believe that the combination of an addition to jetty-web.xml and WebAppContext would be the right way to do this for now. Suggestions on how to do this in a way that is easily adoptable by other web containers would be appreciated.
A reasonable announcement would be the name of the web application linking to the default host name for the application (does it use full http://hostname/ to redirect?).
For now it means that jmdns.jar needs to be added to the jetty libraries.