Hi again, Next question. We are trying to integrate the Wave server into our (modest) server code. We were also using Guice, so it should be relatively easy.
The idea is to try to play with the Authentication services (initially) and integrate them with our equivalent services. And the same thing with the persistence stuff. One year ago, to integrate Fedone was easy, but of course WIAB is something else (a lot of servlets, more complex startup, etc). Our first small problems: Guice complains about some final classes or classes without a public constructor in: M src/org/waveprotocol/box/server/authentication/SessionManagerImpl.java M src/org/waveprotocol/box/server/robots/RobotRegistrationServlet.java M src/org/waveprotocol/box/server/robots/dataapi/DataApiTokenContainer.java M src/org/waveprotocol/box/server/rpc/AttachmentServlet.java M src/org/waveprotocol/box/server/rpc/FetchServlet.java M src/org/waveprotocol/box/server/rpc/UserRegistrationServlet.java because we are using interceptors. See limitations in: https://code.google.com/p/google-guice/wiki/AOP Anyway I'm not sure if I'm walking in the right direction in order to integrate WIAB in our project... The first attempt was to try to run our server code and the WIAB code in the same context and server port. However, I failed to convert ServerRpcProvider to something compatible with GuiceFilter (because ProxyServlet.Transparent and WaveSocketIOServlet are not HttpServlets, and Guice seems to only allow registering HttpServlets, or I don't know how to do it). Right now, I can start our code (in the 8080 port) with the WIAB server code (but running in the 9898 port) as dependencies. If using such approach, I think we need to proxy our client (running in 8080) wave petitions to the WIAB 9898 port, right? Well, as it's clear, I'm somehow confused with which is the best way to integrate WIAB in other projects. Could someone provide any recommendation/advise? Is there any documentation related to this issue? Any feedback or comment would be more than welcome. Thanks in advance, -- Vicente J. Ruiz Jurado http://comunes.org http://ourproject.org http://homes.ourproject.org/~vjrj/blog "For the more there are who say 'Ours,'-not 'Mine'- by that much is each richer ." [Dante on the joys of sharing (Purgatorio, XV)]
