Examples of JndiConfig


Examples of org.apache.jmeter.ejb.jndi.config.JndiConfig

  protected static Set addableList;

  public JndiTestSample()
  {
    defaultJndiConfig = new JndiConfig();
  }
View Full Code Here

Examples of org.apache.jmeter.ejb.jndi.config.JndiConfig

    contextLookupRes.putValue(SampleResult.DISPLAY_NAME, "Context Lookup");
    SampleResult lookupRes = new SampleResult();
    SampleResult homeMethodRes = null;
    SampleResult remoteMethodRes = null;
    Hashtable ht = new Hashtable();
    JndiConfig jndiConfig = null;
    InitialContext ctx = null;
    try
    {
      jndiConfig = (JndiConfig)e.getConfigElement(JndiConfig.class);
      // check if InitialContext is already obtained previously
      ctx = jndiConfig.getInitialContext();
      if(ctx == null)
      {
        // setup the hashtable
        for(int i = 0 ; i < JndiConfig.JNDI_PROPS.length; i++)
        {
          String value = jndiConfig.getValue(i);
          if(value != null)
          {
            if(catClass.isDebugEnabled())
            {
              catClass.debug("sample1 : JNDI env - " +
    JndiConfig.JNDI_PROPS[i] + " = " + value);
            }
            ht.put(JndiConfig.JNDI_PROPS[i], value);
          }
        }
        // initialize initial context
        start = System.currentTimeMillis();
        ctx = new InitialContext(ht);
        end = System.currentTimeMillis();
        catClass.info("sample1 : Got initial context");
        // store the initial context for reuse
        jndiConfig.setInitialContext(ctx);
      }
      // set the initial context lookup time
      ctxTime = end - start;
      contextLookupRes.setTime(ctxTime);
View Full Code Here

Examples of org.apache.jmeter.ejb.jndi.config.JndiConfig

  protected static Set addableList;

  public JndiTestSample()
  {
    defaultJndiConfig = new JndiConfig();
  }
View Full Code Here

Examples of org.wso2.carbon.dataservices.core.description.config.JNDIConfig

    if (connectionURL != null) {
      // RDBMS data source
      sql = getSQLQueryForConnectionURL(queryEl,connectionURL);
    } else if (connectionURL == null && jndiDataSource != null) {
      // JNDI data source
      JNDIConfig jndiConfig = new JNDIConfig(dataService, configId, config.getProperties());
      connectionURL = jndiConfig.getDataSource().getConnection().getMetaData().getURL();
      sql = getSQLQueryForConnectionURL(queryEl,connectionURL);
    } else {
      sql = getDefaultSQLQuery(queryEl);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.