Class LocalConnection

    • Method Detail

      • setClientID

        public final void setClientID​(String clientID)
                               throws javax.jms.JMSException
        Specified by:
        setClientID in interface javax.jms.Connection
        Overrides:
        setClientID in class AbstractConnection
        Throws:
        javax.jms.JMSException
      • createSession

        public final javax.jms.Session createSession​(boolean transacted,
                                                     int acknowledgeMode)
                                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • createSession

        public final javax.jms.Session createSession​(IntegerID sessionId,
                                                     boolean transacted,
                                                     int acknowledgeMode)
                                              throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • start

        public final void start()
                         throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • stop

        public final void stop()
                        throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
      • checkPermission

        public final void checkPermission​(javax.jms.Destination destination,
                                          String action)
                                   throws javax.jms.JMSException
        Check if the connection has the required credentials to use the given destination
        Throws:
        javax.jms.JMSException
      • isSecurityEnabled

        public final boolean isSecurityEnabled()
        Check if there is a security context enabled for this connection
        Returns:
        true if security is enabled
      • checkPermission

        public final void checkPermission​(String resource,
                                          String action)
                                   throws javax.jms.JMSException
        Check if the connection has the required credentials to use the given resource
        Throws:
        javax.jms.JMSException
      • getSecurityContext

        public final SecurityContext getSecurityContext()
        Get the connection security context
        Returns:
        the connection security context or null if security is disabled