Sunday, November 25, 2012

Maven Client using Google Protocol Buffer Stream VIA JX-RS

  • Create a Maven java project Get Idea From This Link
  • Use Archetype = java_1.6_archetype
  • Look this pom.xml. What dependencies I am using :)
  • See the blow Code to get Google protocol buffer from service get method.
  • We create user object from user.proto .
  • To see how we can compile this file to UserDTO take a look this post.


  • To run this project:
  •  Right Click Project -> Run AS - > Clean
  •  Right Click Project -> Run AS - > Install
  •  Right Click Project -> Run AS - > Build -> exec:java 
To Create/ Setup service See this link Google Protocol Buffer and JX-RS


No comments:

Post a Comment