Map<String, Object> rc = super.getFields(o); rc.put("JMSCorrelationID", m.getJMSCorrelationID()); rc.put("JMSDestination", "" + m.getJMSDestination()); rc.put("JMSMessageID", m.getJMSMessageID()); rc.put("JMSReplyTo",toString(m.getJMSReplyTo()));
/** * Return the topic for the message's destination * * @param jmsMessage * @return * @throws JMSException */ public static String getJmsTopic(ActiveMQMessage jmsMessage) throws JMSException { String jmsTopic = null; if (jmsMessage.getDestination().isTopic()) { jmsTopic = ((Topic) jmsMessage.getJMSDestination()).getTopicName().substring(KapuaSecurityBrokerFilter.VT_TOPIC_PREFIX.length()); } else if (jmsMessage.getDestination().isQueue()) { jmsTopic = jmsMessage.getStringProperty(MessageConstants.PROPERTY_ORIGINAL_TOPIC); } else { logger.warn("jmsMessage destination is not a Topic or Queue: {}", jmsMessage.getDestination()); } return jmsTopic; }
if (msg.getJMSDestination() != null) { props.put(AmqMessagesUtil.JMS_MESSAGE_HEADER_PREFIX + "JMSDestination", ((ActiveMQDestination)msg.getJMSDestination()).getPhysicalName());
if (msg.getJMSDestination() != null) { props.put(AmqMessagesUtil.JMS_MESSAGE_HEADER_PREFIX + "JMSDestination", ((ActiveMQDestination)msg.getJMSDestination()).getPhysicalName());
protected void displayAdvisoryMessage(ActiveMQMessage cmdMsg) throws IOException, JMSException { final String topic = cmdMsg.getJMSDestination().toString(); final String advisoryMsg = advisoryDataStructureToString(cmdMsg.getDataStructure()); final String advisoryType = cmdMsg.getDataStructure() != null ? "Type: " + dataStructureTypeToString(cmdMsg.getDataStructure().getDataStructureType()) : ""; output("Advisory on " + topic + advisoryType + (advisoryMsg != null ? " Info " + advisoryMsg : "")); }
if (msg.getJMSDestination() != null) { props.put(AmqMessagesUtil.JMS_MESSAGE_HEADER_PREFIX + "JMSDestination", ((ActiveMQDestination)msg.getJMSDestination()).getPhysicalName());
Map<String, Object> rc = super.getFields(o); rc.put("JMSCorrelationID", m.getJMSCorrelationID()); rc.put("JMSDestination", "" + m.getJMSDestination()); rc.put("JMSMessageID", m.getJMSMessageID()); rc.put("JMSReplyTo",toString(m.getJMSReplyTo()));
Map<String, Object> rc = super.getFields(o); rc.put("JMSCorrelationID", m.getJMSCorrelationID()); rc.put("JMSDestination", "" + m.getJMSDestination()); rc.put("JMSMessageID", m.getJMSMessageID()); rc.put("JMSReplyTo",toString(m.getJMSReplyTo()));
Map<String, Object> rc = super.getFields(o); rc.put("JMSCorrelationID", m.getJMSCorrelationID()); rc.put("JMSDestination", "" + m.getJMSDestination()); rc.put("JMSMessageID", m.getJMSMessageID()); rc.put("JMSReplyTo",toString(m.getJMSReplyTo()));
Map<String, Object> rc = super.getFields(o); rc.put("JMSCorrelationID", m.getJMSCorrelationID()); rc.put("JMSDestination", "" + m.getJMSDestination()); rc.put("JMSMessageID", m.getJMSMessageID()); rc.put("JMSReplyTo",toString(m.getJMSReplyTo()));
topicName = mqttTopicMap.get(message.getJMSDestination()); if (topicName == null) { String amqTopicName = findSubscriptionStrategy().onSend(message.getDestination()); topicName = MQTTProtocolSupport.convertActiveMQToMQTT(amqTopicName); mqttTopicMap.put(message.getJMSDestination(), topicName);
topicName = mqttTopicMap.get(message.getJMSDestination()); if (topicName == null) { String amqTopicName = message.getDestination().getPhysicalName(); topicName = MQTTProtocolSupport.convertActiveMQToMQTT(amqTopicName); mqttTopicMap.put(message.getJMSDestination(), topicName);
topicName = mqttTopicMap.get(message.getJMSDestination()); if (topicName == null) { String amqTopicName = message.getDestination().getPhysicalName(); topicName = MQTTProtocolSupport.convertActiveMQToMQTT(amqTopicName); mqttTopicMap.put(message.getJMSDestination(), topicName);
topicName = mqttTopicMap.get(message.getJMSDestination()); if (topicName == null) { String amqTopicName = findSubscriptionStrategy().onSend(message.getDestination()); topicName = MQTTProtocolSupport.convertActiveMQToMQTT(amqTopicName); mqttTopicMap.put(message.getJMSDestination(), topicName);
topicName = mqttTopicMap.get(message.getJMSDestination()); if (topicName == null) { String amqTopicName = findSubscriptionStrategy().onSend(message.getDestination()); topicName = MQTTProtocolSupport.convertActiveMQToMQTT(amqTopicName); mqttTopicMap.put(message.getJMSDestination(), topicName);
Destination toDestination = message.getJMSDestination(); if (toDestination == null || !(toDestination instanceof ActiveMQDestination)) { Rejected rejected = new Rejected();
Destination toDestination = message.getJMSDestination(); if (toDestination == null || !(toDestination instanceof ActiveMQDestination)) { Rejected rejected = new Rejected();