Its requires time to discuss in details, however this post is in draft state but i figured out 6 important layers in architecture. Please go thrugh and feel free suggest if you have any better suggestions.
- Create a web service with something like Apache Axis
- Use an ESB - something like Mule or JBoss
- Use a simple web Servlet on the server, and submit data using HTTP POST. You could use a simple embeddable Java web server like Jetty to do this.
- Use a messaging protocol like Kryonet or Google's protocol buffers
- Use a more general network application framework such as Netty