title: use output of standalone java file as jmeter parameter
body: <p>I have to create a load test for a post method and have to pass a token in the header manager. This token is generated by stand alone java file and is valid for 5 minutes only. For a manual run, I can generate the token separately and pass it on to jmeter, but want to configure the jmeter in jenkins.</p>
  
  <p>I want to see if I can use that java file and jmeter together and pass that token as parameter. I need solutions for below:</p>
  
  <ol>
  <li>How to implement java file and jmeter together?</li>
  <li>As token is getting expired in 5 minutes so need a solution to check for token expiry and use new token.</li>
  </ol>