Hi, there: We are using Tomcat a lot in our production environment, mainly for http rest apis. (A lot here means over a thousand instances), and we have just upgraded to 7.0.25 from 6.0.32 last month.
And meanwhile, we are developing our own RPC framework, based on Hessian, MsgPack etc, we designed our own RPC protocol, a very simple but flexible protocol, for supporting text and binary transport at the same time, and for configurable serialization, because we have to support multi language users, and our users already have their own choices. So, here is the problem: We want to combine the rest api Tomcat instances and the RPC java instances together, in the framework level. Let's say, we already have HTTP, HTTPS, AJP, Comet, WebSocket protocols here in Tomcat, what if we add our RPC protocol parser besides them, maybe we need another rpcRequest and rpcResponse, or we can dispatch all RPC call to a default servlet, and let user do their jobs in that servlet. I looked at the source code, and as far as I see, Tomcat is not ready for this, because it is not designed to do this, there are too many code to change. Is there any chance for Tomcat to support user-defined protocol later, or I just take the wrong way? Thanks Tang Fulin 梦的开始挣扎于城市的边缘 心的远方执着在脚步的瞬间 我的宿命埋藏了寂寞的永远