Package javax.jms

Examples of javax.jms.ConnectionMetaData


   public void testGetMetadata() throws Exception
   {
      Connection connection = cf.createConnection();

      ConnectionMetaData metaData = (ConnectionMetaData)connection.getMetaData();

      //TODO - need to check whether these are same as current version
      metaData.getJMSMajorVersion();
      metaData.getJMSMinorVersion();
      metaData.getJMSProviderName();
      metaData.getJMSVersion();
      metaData.getJMSXPropertyNames();
      metaData.getProviderMajorVersion();
      metaData.getProviderMinorVersion();
      metaData.getProviderVersion();

   }
View Full Code Here


        info.name = getName(ref);
        ConnectionFactory cf = (ConnectionFactory)context.getService(ref);
        info.selected = (cf == jmsService.getConnectionFactory());
        try {
            Connection con = cf.createConnection();
            ConnectionMetaData meta = con.getMetaData();
            info.product = meta.getJMSProviderName();
            info.version = meta.getProviderVersion();
        } catch (Exception e) {
            info.url = "Connect failed " + e.getMessage();
        }
        return info;
    }
View Full Code Here

   public void testGetMetadata() throws Exception
   {
      Connection connection = JMSTestCase.cf.createConnection();

      ConnectionMetaData metaData = connection.getMetaData();

      // TODO - need to check whether these are same as current version
      metaData.getJMSMajorVersion();
      metaData.getJMSMinorVersion();
      metaData.getJMSProviderName();
      metaData.getJMSVersion();
      metaData.getJMSXPropertyNames();
      metaData.getProviderMajorVersion();
      metaData.getProviderMinorVersion();
      metaData.getProviderVersion();

      connection.close();
   }
View Full Code Here

                }
            }
        });

        try {
            ConnectionMetaData md = _conn.getMetaData();
            _providerName = md.getJMSProviderName();
        } catch (Exception e) {
            _providerName = null;
            _logger.log(Level.WARNING,
            "Unable to get JMSProvider from conn "+_conn+
            " in dmq "+this+": "+e.getMessage());
View Full Code Here

                _targetConnException = true;
            }
        });

        try {
            ConnectionMetaData md = _targetConn.getMetaData();
            _targetProviderName = md.getJMSProviderName();
        } catch (Exception e) {
            _targetProviderName = null;
            _logger.log(Level.WARNING,
            "Unable to get target JMSProvider from conn "+_targetConn+
            " in "+this+": "+e.getMessage());
View Full Code Here

                _sourceConnException = true;
            }
        });
       
        try {
            ConnectionMetaData md = _sourceConn.getMetaData();
            _sourceProviderName = md.getJMSProviderName();
        } catch (Exception e) {
            _sourceProviderName = null;
            _logger.log(Level.WARNING,
            "Unable to get source JMSProvider from conn "+_sourceConn+
            " in "+this+": "+e.getMessage());
View Full Code Here

   public void testGetMetadata() throws Exception
   {
      Connection connection = cf.createConnection();

      ConnectionMetaData metaData = (ConnectionMetaData)connection.getMetaData();

      //TODO - need to check whether these are same as current version
      metaData.getJMSMajorVersion();
      metaData.getJMSMinorVersion();
      metaData.getJMSProviderName();
      metaData.getJMSVersion();
      metaData.getJMSXPropertyNames();
      metaData.getProviderMajorVersion();
      metaData.getProviderMinorVersion();
      metaData.getProviderVersion();
     
      connection.close();
   }
View Full Code Here

   public void testGetMetadata() throws Exception
   {
      Connection connection = cf.createConnection();

      ConnectionMetaData metaData = (ConnectionMetaData)connection.getMetaData();

      //TODO - need to check whether these are same as current version
      metaData.getJMSMajorVersion();
      metaData.getJMSMinorVersion();
      metaData.getJMSProviderName();
      metaData.getJMSVersion();
      metaData.getJMSXPropertyNames();
      metaData.getProviderMajorVersion();
      metaData.getProviderMinorVersion();
      metaData.getProviderVersion();
     
      connection.close();
   }
View Full Code Here

   public void testGetMetadata() throws Exception
   {
      Connection connection = cf.createConnection();

      ConnectionMetaData metaData = (ConnectionMetaData)connection.getMetaData();

      //TODO - need to check whether these are same as current version
      metaData.getJMSMajorVersion();
      metaData.getJMSMinorVersion();
      metaData.getJMSProviderName();
      metaData.getJMSVersion();
      metaData.getJMSXPropertyNames();
      metaData.getProviderMajorVersion();
      metaData.getProviderMinorVersion();
      metaData.getProviderVersion();
     
      connection.close();
   }
View Full Code Here

    protected RedeliveryHandler createInstance()
    {
        RedeliveryHandler newInstance;
        try
        {
            ConnectionMetaData metaData = connector.getConnection().getMetaData();
            boolean supportsDeliveryCount = false;
            final Enumeration propNames = metaData.getJMSXPropertyNames();
            while (propNames.hasMoreElements())
            {
                String p = (String) propNames.nextElement();
                if (JmsConstants.JMS_X_DELIVERY_COUNT.equals(p))
                {
View Full Code Here

TOP

Related Classes of javax.jms.ConnectionMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.