Package hermes.config

Examples of hermes.config.ProviderConfig


  public void setValues(FactoryConfig config) {

    // 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();
View Full Code Here


   {
      FactoryConfig factoryConfig = new FactoryConfig();
      factoryConfig.setClasspathId(classpathId);
      SessionConfig sessionConfig = new SessionConfig();
      ConnectionConfig connectConfig = new ConnectionConfig();
      ProviderConfig providerConfig = new ProviderConfig();

      sessionConfig.setId(sessionId);
      sessionConfig.setTransacted(true);
      sessionConfig.setReconnects(BigInteger.ZERO);

      connectConfig.getSession().add(sessionConfig);

      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);

      return factoryConfig;
   }
View Full Code Here

   {
      FactoryConfig factoryConfig = new FactoryConfig();
      factoryConfig.setClasspathId(SimpleClassLoaderManager.SYSTEM_LOADER);
      SessionConfig sessionConfig = new SessionConfig();
      ConnectionConfig connectConfig = new ConnectionConfig();
      ProviderConfig providerConfig = new ProviderConfig();

      sessionConfig.setId(sessionId);
      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

    //
    // If there is a new factory being defined, copy over the OLD class for
    // reuse.

    if (newFactory.getProvider() == null) {
      newFactory.setProvider(new ProviderConfig());
      newFactory.getProvider().setClassName(factoryConfig.getProvider().getClassName());
    }

    this.factoryConfig = newFactory;
View Full Code Here

TOP

Related Classes of hermes.config.ProviderConfig

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.