Maybe they are saying that because JBoss does offer multiple services such as RMI, SOAP and Servlets that also provide access.
Other then that, I don't know why it should be bad to have your own sockets.
If you needs require it, then do it. And if your colleagues say it is bad practice, then demand they tell you why.
What is bad practice is to claim something is bad and not explain why.