Class WmQueueConnectionImpl

    • Constructor Detail

      • WmQueueConnectionImpl

        protected WmQueueConnectionImpl​(WmConnectionFactoryImpl factory,
                                        java.lang.String userName,
                                        java.lang.String password)
                                 throws javax.jms.JMSException
        Protected constructor.
        Parameters:
        factory - the factory that created this connection
        userName - the caller's user name
        password - the caller's password
        Throws:
        javax.jms.JMSException
      • WmQueueConnectionImpl

        protected WmQueueConnectionImpl​(WmConnectionFactoryImpl factory,
                                        java.lang.String userName,
                                        java.lang.String password,
                                        java.lang.String accessLabelHint)
                                 throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • createDurableConnectionConsumer

        public javax.jms.ConnectionConsumer createDurableConnectionConsumer​(javax.jms.Topic topic,
                                                                            java.lang.String subscriptionName,
                                                                            java.lang.String messageSelector,
                                                                            javax.jms.ServerSessionPool sessionPool,
                                                                            int maxMessages)
                                                                     throws javax.jms.JMSException
        Thows an IllegalStateException.
        Specified by:
        createDurableConnectionConsumer in interface javax.jms.Connection
        Overrides:
        createDurableConnectionConsumer in class WmConnectionImpl
        Parameters:
        topic - topic to access
        subscriptionName - durable subscription name
        messageSelector - only messages with properties matching the message selector expression are delivered. A value of null or an empty string indicates that there is no message selector for the message consumer.
        sessionPool - the server session pool to associate with this durable connection consumer
        maxMessages - the maximum number of messages that can be assigned to a server session at one time
        Returns:
        the durable connection consumer
        Throws:
        javax.jms.JMSException - if the Connection object fails to create a connection consumer due to some internal error or invalid arguments for sessionPool and messageSelector.
        javax.jms.InvalidDestinationException - if an invalid destination is specified.
        javax.jms.InvalidSelectorException - if the message selector is invalid.