Class TcpConnectionFactory

  • All Implemented Interfaces:
    jakarta.jms.ConnectionFactory, jakarta.jms.QueueConnectionFactory, jakarta.jms.TopicConnectionFactory, jakarta.jms.XAConnectionFactory, jakarta.jms.XAQueueConnectionFactory, jakarta.jms.XATopicConnectionFactory, Serializable, Referenceable

    public class TcpConnectionFactory
    extends ConnectionFactory
    A TcpConnectionFactory instance is a factory of TCP connections. The created ConnectionFactory can be configured using theFactoryParameters.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • logger

        private static Logger logger
      • DEBUG

        private static final boolean DEBUG
    • Constructor Detail

      • TcpConnectionFactory

        public TcpConnectionFactory()
        Constructs an empty TcpConnectionFactory instance. Should only be used for internal purposes.
      • TcpConnectionFactory

        private TcpConnectionFactory​(String host,
                                     int port)
        Constructs a TcpConnectionFactory instance. By default the connectingTimer property is set to 60 seconds.
        Parameters:
        host - Name or IP address of the server's host.
        port - Server's listening port.