public static TextMessage receiveFromTopic(final String topicName, final String selector, final long timeout, final boolean secure) throws InfrastructureException, CryptoException {
        return MessageConnector.receiveFromDestination(new GetResolveDestinationAction(false, topicName), selector, timeout, secure);
    }
public static TextMessage receiveFromTopic ( final String topicName , final String selector , final long timeout , final boolean secure ) throws InfrastructureException , CryptoException { return MessageConnector . receiveFromDestination ( new GetResolveDestinationAction ( false , topicName ) , selector , timeout , secure ) ; }
@param topicName the name of the topic
@param selector  the JMS selector (null or an empty string indicates that there is no selector)
@param timeout   the request timeout
@param secure    enable secure transport
@return the received {@link TextMessage}
@throws InfrastructureException on errors
@throws CryptoException         on crypto errors