Lets first understand the building blocks of the complete project:
This is a JEE web app hosted on wildfly and mysql as backend. Some components, such as, Chat, and Video Conferencing has Websockets connection and some other modules that are depended on third party software are connected by REST services. I am planning to implement a Mongo layer so that the different technologies can talk via plain javascript, using the MongoDB database, rather than REST, but need to understand MongoDB licensing first.