zoukankan      html  css  js  c++  java
  • JMS

    A Connection provides a ConnectionMetaData object. This object provides the latest version of JMS supported by the provider as well as the provider’s product name and version.

    It also provides a list of the JMS defined property names supported by the connection.

    Sample Code:

    ConnectionMetaData metaData = connection.getMetaData();
    System.out.println("JMSVersion: " + metaData.getJMSVersion());
    System.out.println("JMSMajorVersion: " + metaData.getJMSMajorVersion());
    System.out.println("JMSMinorVersion: " + metaData.getJMSMinorVersion());
    
    System.out.println("JMSProviderName: " + metaData.getJMSProviderName());
    System.out.println("ProviderVersion: " + metaData.getProviderVersion());
    System.out.println("ProviderMajorVersion: " + metaData.getProviderMajorVersion());
    System.out.println("ProviderMinorVersion: " + metaData.getProviderMinorVersion());
    
    Enumeration<?> JMSXPropertyNames = metaData.getJMSXPropertyNames();
    System.out.print("JMSXPropertyNames: ");
    while (JMSXPropertyNames.hasMoreElements()) {
        String propertyName = (String) JMSXPropertyNames.nextElement();
        System.out.print(propertyName + ", ");
    }

    Output:

    JMSVersion: 1.1
    JMSMajorVersion: 1
    JMSMinorVersion: 1
    JMSProviderName: ActiveMQ
    ProviderVersion: 5.10.0
    ProviderMajorVersion: 5
    ProviderMinorVersion: 10
    JMSXPropertyNames: JMSXUserID, JMSXGroupID, JMSXGroupSeq, JMSXDeliveryCount, JMSXProducerTXID, 
  • 相关阅读:
    centos7 安装prometheus node_exporter
    RMAN备份演练初级篇
    RMAN命令
    oracle数据库的归档模式
    oracle的会话(session)
    oracle的例程
    oracle热备份
    Oracle数据库归档模式的切换及其相关操作详解
    Oracle角色
    类名.class, class.forName(), getClass()区别
  • 原文地址:https://www.cnblogs.com/huey/p/5116792.html
Copyright © 2011-2022 走看看