Package org.apache.jmeter.protocol.jms.sampler

Examples of org.apache.jmeter.protocol.jms.sampler.JMSSampler


  }

  public TestElement createTestElement() {
    // org.activemq.jndi.ActiveMQInitialContextFactory
    // ConfigTestElement element = new ConfigTestElement();
    JMSSampler sampler = new JMSSampler();
    this.configureTestElement(sampler);
    transfer(sampler);
    return sampler;
  }
View Full Code Here


  /**
   *
   * @param element
   */
  public void modifyTestElement(TestElement element) {
    JMSSampler sampler = (JMSSampler) element;
    this.configureTestElement(sampler);
    transfer(sampler);

    /*
     * element.setProperty( JMSSampler.QUEUE_CONNECTION_FACTORY_JNDI,
View Full Code Here

  /**
   * @param el
   */
  public void configure(TestElement el) {
    super.configure(el);
    JMSSampler sampler = (JMSSampler) el;
    queueuConnectionFactory.setText(sampler.getQueueConnectionFactory());
    sendQueue.setText(sampler.getSendQueue());
    receiveQueue.setText(sampler.getReceiveQueue());

    JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
    String selected = null;
    if (sampler.isOneway()) {
      selected = JMeterUtils.getResString("jms_request");
    } else {
      selected = JMeterUtils.getResString("jms_requestreply");
    }
    box.setSelectedItem(selected);

    timeout.setText(String.valueOf(sampler.getTimeout()));
    soapXml.setText(sampler.getContent());
    initialContextFactory.setText(sampler.getInitialContextFactory());
    providerUrl.setText(sampler.getContextProvider());

    jmsPropertiesPanel.configure(sampler.getJMSProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());

    jndiPropertiesPanel.configure(sampler.getJNDIProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
  }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.jms.sampler.JMSSampler

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.