title: JMeter custom sampler - share same connections with multiple runTest
body: <p>I am successful in creating a custom sampler by extending AbstractJavaSamplerClient. In the sampler implementation I am making a JMS connection and sending message to a queue. This is working great. If I configure my Thread Group to 100 with Ramp-up 1, my sampler is pushing 100 messages.</p>
  
  <p>Now what I wanted to do is to make the connection only once at the JMeter startup and then reuse the same connection to send messages on each run.</p>
  
  <p>Can anyone explain how to create a connection at JMeter startup and then share the same connection with the sampler.</p>
  
  <p>Note: I can't use the existing JMS publisher because I want to calculate my response time based on different application event not just calculating the time taken to publish the message to JMS.</p>
  
  <p>Thanks in advance.</p>