Package hermes.config

Examples of hermes.config.PropertySetConfig


    // Basics

    ProviderConfig provider = HermesBrowser.getConfigDAO().getFactory().createProviderConfig();
    provider.setClassName("com.tibco.tibjms.TibjmsConnectionFactory");
    PropertySetConfig p = HermesBrowser.getConfigDAO().getFactory().createPropertySetConfig();

    addProperty(p.getProperty(), "serverUrl", basicInfo.getServerURL());
    addProperty(p.getProperty(), "userName", basicInfo.getUsername());
    addProperty(p.getProperty(), "password", basicInfo.getPassword());
    addProperty(p.getProperty(), "clientID", basicInfo.getClientID());

    provider.setProperties(p);

    // Extension.

    config.setClasspathId(basicInfo.getClasspathId());
    ProviderExtConfig extConfig = HermesBrowser.getConfigDAO().getFactory().createProviderExtConfig();
    PropertySetConfig p2 = HermesBrowser.getConfigDAO().getFactory().createPropertySetConfig();

    extConfig.setClassName("hermes.ext.ems.TibcoEMSAdminFactory");
    addProperty(p2.getProperty(), "serverUrl", basicInfo.getServerURL());
    addProperty(p2.getProperty(), "userName", basicInfo.getUsername());
    addProperty(p2.getProperty(), "password", basicInfo.getPassword());
    extConfig.setProperties(p2);
  }
View Full Code Here


                QMFObject qmfObject = new QMFObject(i);
                String queueName = qmfObject.getName();

                if(acceptDestination(queueName)) {
                    DestinationConfig destinationConfig = buildDestinationConfig(queueName);
                    PropertySetConfig propertySetConfig = new PropertySetConfig();

                    for (String key : qmfObject.keySet()) {

                        PropertyConfig propertyConfig = new PropertyConfig();
                        propertyConfig.setName(key);
                        propertyConfig.setValue(qmfObject.getStringValue(key));
                        propertySetConfig.getProperty().add(propertyConfig);
                    }

                    destinationConfig.setProperties(propertySetConfig);
                    rval.add(destinationConfig);
                }
View Full Code Here

      connectConfig.getSession().add(sessionConfig);
      factoryConfig.getConnection().add(connectConfig);
      factoryConfig.setExtension(createDefaultProviderExtConfig(NullConnectionFactory.class.getName()));
      sessionConfig.setTransacted(true);

      providerConfig.setProperties(new PropertySetConfig());
      factoryConfig.setProvider(providerConfig);

      return factoryConfig;
   }
View Full Code Here

      try
      {
          final NamingConfig newConfig = new NamingConfig();
         
          newConfig.setClasspathId(SimpleClassLoaderManager.SYSTEM_LOADER);
          newConfig.setProperties(new PropertySetConfig());

          final String newName = JOptionPane.showInputDialog(HermesBrowser.getBrowser(), "Name:", "Enter InitialContext Name", JOptionPane.PLAIN_MESSAGE);

          if ( newName != null && !newName.equals(""))
          {
View Full Code Here

   {
      try
      {
         RendererConfig rConfig = factory.createRendererConfig();
         rConfig.setClassName(className);
         PropertySetConfig properties = rConfig.getProperties();

         if (properties == null)
         {
            properties = new PropertySetConfig();
            rConfig.setProperties(properties);
         }

         populatePropertySet(map, properties);
View Full Code Here

         if (rConfig.getClassName().equals(className))
         {
            if (rConfig.getProperties() == null)
            {
               rConfig.setProperties(new PropertySetConfig());
            }

            rConfig.getProperties().getProperty().clear();

            for (Iterator<?> iter2 = props.keySet().iterator(); iter2.hasNext();)
View Full Code Here

      factoryConfig.getConnection().add(connectConfig);

      factoryConfig.setExtension(createDefaultProviderExtConfig(NullConnectionFactory.class.getName()));

      PropertySetConfig propertySet = factory.createPropertySetConfig();

      // Copy over the other ones...

      for (Iterator<PropertyConfig> iter = properties.getProperty().iterator(); iter.hasNext();)
      {
         PropertyConfig pConfig = iter.next();

         if (!pConfig.getName().equals("binding"))
         {
            propertySet.getProperty().add(pConfig);
         }
      }

      PropertyConfig bProperty = factory.createPropertyConfig();

      // Update with the binding.

      bProperty.setName("binding");
      bProperty.setValue(binding);

      propertySet.getProperty().add(bProperty);
      providerConfig.setProperties(propertySet);

      providerConfig.setClassName(className);
      factoryConfig.setProvider(providerConfig);
View Full Code Here

            config.setClasspathId(classpathIdProperty.getValue().toString());

            if (config.getProperties() == null)
            {
                config.setProperties(new PropertySetConfig());
            }
            else
            {
                config.getProperties().getProperty().clear();
            }
View Full Code Here

    {
        try
        {
            final String selectedConfig = (String) comboBox.getSelectedItem();
            final NamingConfig config = (NamingConfig) namingConfigsByName.get(selectedConfig);
            final PropertySetConfig propertySet = config.getProperties();

            if (currentSelection == null || !currentSelection.equals(selectedConfig))
            {
                currentSelection = selectedConfig;
View Full Code Here

               factoryConfig.getConnection().add(new ConnectionConfig());
            }

            if (factoryConfig.getProvider().getProperties() == null)
            {
               factoryConfig.getProvider().setProperties(new PropertySetConfig());
            }

            connectionFactoryConfigPanel.setFactoryConfig(model, factoryConfig);
            destinationConfigPanel.setFactoryConfig(factoryConfig);
View Full Code Here

TOP

Related Classes of hermes.config.PropertySetConfig

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.