Source of using thrift in Java and node.js. TServer (Java), TClient(Java and node.js).
Java JavaScript Shell
Switch branches/tags
Nothing to show
Latest commit f62a150 Apr 26, 2013 @h2rd h2rd new modules

README.md

using-thrift

Source of using thrift in Java and node.js. TServer (Java), TClient(Java and node.js). Java server can be launched from console or(and) under application continer(like Tomcat).

  1. Build:

     $ mvn clean install
     $ cd thrift-client
     $ ./generateNodePackage.sh
     $ npm install
     $ sudo npm link
    
  2. Start java server:

     $ cd java-server/
     $ mvn jetty:run
    
  3. Start java client:

     $ cd java-client
     $ java -Dfile.encoding=UTF-8 -jar target/java-client-1.0-SNAPSHOT.one-jar.jar
    
  4. Run node.js client

     $ cd node-client
     $ npm install
     $ npm link using-thrift
     $ node node.js