A simple chat application implemented using CDI