Replying to myself: after having double-checked all the docs, it now works: there was an inconsistency in my configuration, it was enough to prevent the whole stuff to work.
If anyone is curious, I can still give him more details. In the meantime, thanks to all, Pierre On Mon, Jan 13, 2014 at 9:20 PM, Pierre Goupil <goupilpie...@gmail.com>wrote: > Good evening, > > I finally have the need to use nginx, but can't figure out how to > configure it with Wicket and Atmosphere. > > I've provided the nginx configuration quoted above, and in my init() > method of WebApplication, I have: > > this.getFilterFactoryManager().add(new XForwardedRequestWrapperFactory()); > > But no way, the WebSocket connection returns an error. > > GET > http://me.net/?0-IResourceListener.2-&...ache-Date=0&X-atmo-protocol=true&_=1389644050464 > > > > > => Firefox can't establish a connection to the server at ws:// > me.net/?0-IResourceListener.2-&X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0.8-jquery&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&X-atmo-protocol=true > > Does anybody have an idea, please? > > Regards, > > Pierre > > > > > > On Wed, Aug 14, 2013 at 4:03 PM, Emond Papegaaij < > emond.papega...@topicus.nl> wrote: > >> We depend heavily on ajp. Our application server needs to know the exact >> url the request was made to. This is very hard to get right with plain >> http >> proxying (if not impossible). The main reason we use httpd in front of our >> application server(s) is for load balancing and status information >> (serving >> a 503 when the application is down). Tomcat's (or JBoss in our case) >> performance has never been an issue. >> >> Best regards, >> Emond >> >> On Wednesday 14 August 2013 07:50:50 Dan Retzlaff wrote: >> > Have you considered nginx? We use httpd but our reverse-proxying >> needs are >> > pretty simple. I've been meaning to try nginx. >> > >> > http://nginx.org/en/docs/http/websocket.html >> > >> > On Wed, Aug 14, 2013 at 7:42 AM, Pierre Goupil >> <goupilpie...@gmail.com>wrote: >> > > I use only Tomcat (7.0.40) and I must admit that with NIO connector >> and >> > > useNative=true, the performance looks nice. I have no use for an >> httpd for >> > > the moment, but I'm not in production. >> > > >> > > I plan to load test my app, if you're interested, I can communicate >> the >> > > results to you. >> > > >> > > As a side-note, on the Tomcat list, many people are starting to talk >> about >> > > better WebSockets support in Tomcat 8 and the dev seem to realize >> that >> > > there is a strong expectation for them, so maybe they'll try and >> convince >> > > to work hand-in-hand with the httpd / AJP people? >> > > >> > > Anyway, thanks again and keep up the good work! >> > > >> > > And of course a big "thank you" to the people from the great Wicket, >> too! >> > > >> > > :-) >> > > >> > > Regards, >> > > >> > > Pierre >> > > >> > > >> > > On Wed, Aug 14, 2013 at 3:33 PM, Emond Papegaaij < >> > > emond.papega...@topicus.nl >> > > >> > > > wrote: >> > > > >> > > > Hi Pierre, >> > > > >> > > > Good to hear you like it! Unfortunately, we are still waiting for >> the >> > > >> > > rest >> > > >> > > > of >> > > > the server stack to support websockets before we can actually use >> it in >> > > > production applications. Hopefully, with the release of jee7 (with >> > > >> > > jsr356) >> > > >> > > > maintainers of httpd and ajp will finally realize they need to >> support >> > > > websockets as well. >> > > > >> > > > Best regards, >> > > > Emond >> > > > >> > > > On Wednesday 14 August 2013 12:01:05 Pierre Goupil wrote: >> > > > > Good morning, >> > > > > >> > > > > All apologies for this totally off-topic message, but I would >> like to >> > > > >> > > > say a >> > > > >> > > > > big "THANK YOU" to Emond for his work on wicket-atmosphere. >> > > > > >> > > > > His code is far from trivial, yet it is a real pleasure to use it. >> > > > > According to me, the killer-feature is the fact that we have an >> > > > > AjaxRequestTarget to work with which triggers a Comet / >> WebSocket >> > > > >> > > > response. >> > > > >> > > > > Thanks again, man! >> > > > > >> > > > > Pierre >> > > >> > > -- >> > > "Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as >> pas >> > > mal. >> > > Alors frappez-moi de musique ! >> > > Frappez-moi de musique, maintenant !" >> > > >> > > (Bob Marley : "Trenchtown Rock") >> > > > > -- > "Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas > mal. > Alors frappez-moi de musique ! > Frappez-moi de musique, maintenant !" > > (Bob Marley : "Trenchtown Rock") > -- "Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas mal. Alors frappez-moi de musique ! Frappez-moi de musique, maintenant !" (Bob Marley : "Trenchtown Rock")