There is a Java EE Tutorial sample called Converter. It is described here.
This example works with a local Application Server - Glassfish 3.1.2 and Glassfish 4.1.1
I have set up a similar server on Amazon EC2 - free micro instance.
Netbeans IDE - the Java EE development tool, can be told...