I don't have any direct experience yet using Java sockets in ASE, but as the manuals explicitly mention the class, I suspect they can be used. Using socket classes
As an initial guess, have you adjusted the sp_configure parameter "number of java sockets" up from its default value of 0? number of java sockets
-bret