It's possible to use the same Apache Thrift server for Javascript web and for Java? At the moment, I have a ThreadPoolServer for Javascript:
TServer server = new TThreadPoolServer(new TThreadPoolServer.Args(serverTransport).processor(processor));
And a simple server for Java:
TServer jserver = new TSimpleServer(new Args(jserverTransport).processor(jprocessor));
Both of them share the same info. Now, I have this problem where somethimes the data comes incomplete in one of the clients and dont know if it's for that.
If the question is, whether or not a particular service could be connected by a client in any arbitrary, Thrift-supported language, then the answer is a big YES because that's what Thrift is all about.
Now, i have this problem where somethimes the data comes incomplete in one of the clients and dont know if it's for that.
Please add the relevant information, such as
I forgot to say that im using an Http Server to connect to JavasScript. http://codeshare.io/llR5F Im not sure how to use it with the java client
The Java HTP client should work very similar to the JavaScript client. The Thrift library as a whole is very consistent across languages re how things work and how they are named.