Sunday 5 August 2018

JMS properties supported by ActiveMq?

ActiveMQ provides 'ActiveMQConnectionMetaData' class to get all the supported jms properties.

Test.java
package com.sample.app;

import java.util.Enumeration;

import javax.jms.JMSException;

import org.apache.activemq.ActiveMQConnectionMetaData;

public class Test {

 public static void main(String args[]) throws JMSException {
  Enumeration<String> jmsxProperties = ActiveMQConnectionMetaData.INSTANCE.getJMSXPropertyNames();

  while (jmsxProperties.hasMoreElements()) {
   String property = jmsxProperties.nextElement();

   System.out.println("Property : " + property);
  }

 }
}

Output
Property : JMSXUserID
Property : JMSXGroupID
Property : JMSXGroupSeq
Property : JMSXDeliveryCount
Property : JMSXProducerTXID





Previous                                                 Next                                                 Home

No comments:

Post a Comment