Thanks Carl. For the container question, I was wondering if I have to code a container similar to servlet container, ejb container to wrap Thrift up in order to embed it into J2EE, in which way Thrifty service implementations could be more naturally deployed and mapped.
Well, I guess a RA would do the trick to accept RPC requests. I'm still thinking how to map requests to deployed session beans though. Zhou ----- Original Message ---- From: Carl Byström <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, June 12, 2008 10:00:54 PM Subject: Re: Is there a way to embed thrift into J2EE server? On Thu, Jun 12, 2008 at 12:44 PM, Xianzheng Zhou <[EMAIL PROTECTED]> wrote: > > Ah~~interesting. > There's a TServlet as part of thrifty library? or you coded it yourself? > Resource Adaptor looks more like what i'm looking for, do you happen to know > some details of how to code a RA? > Thanks for you suggestions. > .. Nope, TServlet is not part of Thrift (yet?). Have a look at http://tiling.org/thrift/TServlet.java - it's really simple. Around 90 lines, most of it whitespace. As for RA's, have a look at this book http://tinyurl.com/6mjqkn We've mostly used that as a reference together with Google. > I'm more interested in allowing Thrift to accept requests directly rather > than through Servlet. Do I need to code up a container to wrap it up? Not sure what you mean with your last question. Could you rephrase it?
