Class ConnectionFactory

  • All Implemented Interfaces:
    jakarta.jms.ConnectionFactory, jakarta.jms.QueueConnectionFactory, jakarta.jms.TopicConnectionFactory, jakarta.jms.XAConnectionFactory, jakarta.jms.XAQueueConnectionFactory, jakarta.jms.XATopicConnectionFactory, Serializable, Referenceable
    Direct Known Subclasses:
    LocalConnectionFactory, TcpConnectionFactory

    public abstract class ConnectionFactory
    extends AbstractConnectionFactory
    implements jakarta.jms.ConnectionFactory, jakarta.jms.QueueConnectionFactory, jakarta.jms.TopicConnectionFactory, jakarta.jms.XAConnectionFactory, jakarta.jms.XAQueueConnectionFactory, jakarta.jms.XATopicConnectionFactory
    Implements all the jakarta.jms.ConnectionFactory interfaces.

    A ConnectionFactory object encapsulates a set of configuration parameters defined by an administrator. A client needs to use it to create a connection with a Joram server.

    A ConnectionFactory object encapsulates a set of configuration parameters defined by an administrator. A client needs to use it to create a connection with a Joram server.

    A ConnectionFactory object is a JMS administered object containing configuration information, it is created by an administrator and later used by JMS clients. Normally the JMS clients find administered objects by looking them up in a JNDI namespace.

    ConnectionFactory objects can be programmatically created using the LocalConnectionFactory.create or TcpConnectionFactory.create methods. Created objects can be then configured using FactoryParameters object.

    See Also:
    ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory, Serialized Form
    • Field Detail

      • serialVersionUID

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

      • ConnectionFactory

        public ConnectionFactory()
        Constructs an empty ConnectionFactory. Needed by ObjectFactory, should only be used for internal purposes.
      • ConnectionFactory

        protected ConnectionFactory​(String host,
                                    int port)
        Constructs a ConnectionFactory dedicated to a given server.
        Parameters:
        host - Name or IP address of the server's host.
        port - Server's listening port.
      • ConnectionFactory

        protected ConnectionFactory​(String url)
        Constructs a ConnectionFactory dedicated to a given server.
        Parameters:
        url - joram url.
    • Method Detail

      • toString

        public String toString()
        Returns a string view of the connection factory.
        Overrides:
        toString in class Object