Android mobile client / server communication using the Hessian binary protocol

  Android, Hessdroid, Hessian, Tutorial

Introduction

I’ve searched the internet for a good mobile client example using the Hessian protocol to communicate with a web container. I couldn’t find any which wasn’t based on Caucho’s website example using Jetty. So I decided to do a tutorial on my own. To make it more challenging, I chose Wildfly and JBoss Developer Studio, and no Spring.

This tutorial simply serves a customer object to the client. We begin with the server implementation. For some background information about the binary code of the Hessian protocol, look here.

Here are the prerequisites for this tutorial:

If you’re using your local development workstation as the server in this tutorial, you can setup a DDNS service for your workstation using ‘No-Ip’ or other services. Setup your internet router to login to your DDNS service and on the same router forward a port to your Wildfly server port (usually 8080).

Good luck.

LEAVE A COMMENT