Can we implement a user defined server socket class in JBoss and open a normal socket connection to this server socket? If so, what all are the configurations that we should do? It is some thing like the client should be able to open a normal socket connection to the server deployed on JBoss (Not http requests). i.e. the server should be able to listen and accept the normal socket connections from the client.