The above works well on embedded glassfish but not when deploying the application on the server. A telnet to the port does not connect anymore. Does anyone have a clue as to what might be causing this?
So Glassfish works well after all. I had forgot to build one ofthe dependencies after correcting the ssl code. Works now.