title: how can i change jdbc connection in a test plan?
body: <p>i have a problem in jmeter jdbc connection configuration
  i want to be able change dbURL, dbUsername and dbPassword AFTER running the plan
  the problem is all of these properties loads ONCE
  after a few research, i found this page:
  <a href="https://jmeter.apache.org/api/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.html#getUsername--" rel="nofollow noreferrer">https://jmeter.apache.org/api/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.html#getUsername--</a></p>
  
  <p>there are methods like setUsername and setPassword (exact thing that i want)
  the problem is i am using below code in jsr233 controller (after the jdbc connection)</p>
  
  <p>but in log viewer:</p>
  
  <p><b>No signature of method: org.apache.commons.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper.setUsername() is applicable for argument types: (java.lang.String) values: [test]</b></p>
  
  <p>what is the problem here? </p>
  
  <pre><code>import java.sql.Connection;
  import org.apache.jmeter.protocol.jdbc.config.DataSourceElement;
  import java.sql.DatabaseMetaData;
  
  Connection con = DataSourceElement.getConnection("A");
  con.setUsername("test");
  </code></pre>