diegospc / wave-protocol

Automatically exported from code.google.com/p/wave-protocol
0 stars 0 forks source link

Allow using an external server by using a GuiceServletContextListener to register WAIB services #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
WAIB integration with other projects would be easier if we could simply 
register and start the services with an external server using a web.xml.

By using a GuiceServletContextListener we can do everything that was previously 
done on ServerMain and thus we just need to add this as a listener in the 
web.xml.

If we need to add extra servlets to WAIB we can extend GuiceServletConfig 
(which would be provided by WAIB) and override 
initializeServlets(ServerRpcProvider server).

I'm also providing a sample JettyLauncher which can be used with GWT's hosted 
mode by adding :  <arg line="-server 
pt.inevo.coladi.wave.server.gwt.jetty.JettyLauncher" /> to the "hosted-gwt" 
target. Please notice this is still work in progress and I still need to hook 
up the HashSessionManager to the embedded server. 

Original issue reported on code.google.com by nelson.s...@gmail.com on 4 Apr 2011 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by vega113 on 5 Apr 2011 at 9:22

GoogleCodeExporter commented 9 years ago
Fixed by revision acd099ce6bb2.

It would be great though if we go one step further and move the servlet 
definitions from ServerMain into GuiceServletConfig like in the sample 
configuration attached to this issue.

Original comment by vega113 on 15 Apr 2011 at 2:53