Using Custom Socket with jConnect

Review the steps to use custom socket with jConnect.

  1. Provide a Java class that implements com.sybase.jdbcx.SybSocketFactory.
  2. Set the SYBSOCKET_FACTORY connection property so that jConnect can use your implementation to obtain a socket.
    To use a custom socket with jConnect, set the SYBSOCKET_FACTORY connection property to either:
    • The class name that implements com.sybase.jdbcx.SybSocketFactory, or,

    • DEFAULT (this instantiates a new java.net.Socket).

Related concepts
Connection Properties
Related reference
Create and Configure a Custom Socket