接口 DestinationResolver

    • 方法详细资料

      • resolveDestinationName

        Destination resolveDestinationName​(Session session,
                                           String destinationName,
                                           boolean pubSubDomain)
                                    throws JMSException
        Resolve the given destination name, either as located resource or as dynamic destination.
        参数:
        session - the current JMS Session (may be null if the resolver implementation is able to work without it)
        destinationName - the name of the destination
        pubSubDomain - true if the domain is pub-sub, false if P2P
        返回:
        the JMS destination (either a topic or a queue)
        抛出:
        JMSException - if the JMS Session failed to resolve the destination
        DestinationResolutionException - in case of general destination resolution failure