javax.jms.Destination#toString ( )源码实例Demo

下面列出了javax.jms.Destination#toString ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: qpid-jms   文件: JmsMessagePropertyIntercepter.java
@Override
public Object getProperty(JmsMessage message) throws JMSException {
    Destination dest = message.getFacade().getDestination();
    if (dest == null) {
        return null;
    }
    return dest.toString();
}
 
源代码2 项目: lemon   文件: ProxyConnectionFactory.java
public void sendMessage(MessageContext messageContext,
        Destination destination, Message message) throws JMSException {
    String destinationName = destination.toString();

    if (destination instanceof Topic) {
        messageHandler.sendMessageToTopic(messageContext, destinationName,
                message);
    } else {
        messageHandler.sendMessageToQueue(messageContext, destinationName,
                message);
    }
}
 
源代码3 项目: lemon   文件: ProxyConnectionFactory.java
public MessageConsumer createConsumer(Destination destination,
        ProxySession session) throws JMSException {
    String destinationName = destination.toString();
    ProxyMessageConsumer messageConsumer = new ProxyMessageConsumer(session);
    messageConsumer.setDestination(destination);

    if (destination instanceof Topic) {
        this.messageHandler.registerToTopic(destinationName,
                messageConsumer.getId());
    }

    return messageConsumer;
}
 
源代码4 项目: lemon   文件: ProxyConnectionFactory.java
public void removeMessageConsumer(ProxyMessageConsumer messageConsumer)
        throws JMSException {
    Destination destination = messageConsumer.getDestination();

    if (destination instanceof Topic) {
        String destinationName = destination.toString();
        this.messageHandler.unregisterFromTopic(destinationName,
                messageConsumer.getId());
    }
}
 
源代码5 项目: activemq-artemis   文件: ConsumerThread.java
public ConsumerThread(Session session, Destination destination, int threadNr) {
   super("Consumer " + destination.toString() + ", thread=" + threadNr);
   this.destination = destination;
   this.session = session;
}
 
源代码6 项目: activemq-artemis   文件: ProducerThread.java
public ProducerThread(Session session, Destination destination, int threadNr) {
   super("Producer " + destination.toString() + ", thread=" + threadNr);
   this.destination = destination;
   this.session = session;
}
 
源代码7 项目: qpid-jms   文件: JmsMessageTransformationTest.java
@Override
public JmsDestination transform(Destination destination) throws JMSException {
    return new JmsQueue(destination.toString());
}
 
 方法所在类
 同类方法