Small web application in java for sending messages