But you still have problems with authentication if you roll your own socket scheme. And authentication is not part of JMS, though the vendors implement their own in the connection.