You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/07/08 21:30:24 UTC

svn commit: r554420 - /jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java

Author: sebb
Date: Sun Jul  8 12:30:23 2007
New Revision: 554420

URL: http://svn.apache.org/viewvc?view=rev&rev=554420
Log:
Restore setup of PACKAGE_OBJECT for use by Transaction Controller

Modified:
    jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java

Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java?view=diff&rev=554420&r1=554419&r2=554420
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java (original)
+++ jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/threads/JMeterThread.java Sun Jul  8 12:30:23 2007
@@ -104,6 +104,8 @@
 
 	private boolean onErrorStopThread;
 
+	public static final String PACKAGE_OBJECT = "JMeterThread.pack"; // $NON-NLS-1$
+
 	public static final String LAST_SAMPLE_OK = "JMeterThread.last_sample_ok"; // $NON-NLS-1$
 
 	public JMeterThread() {
@@ -281,6 +283,10 @@
                         if(sam != null) {
                             // Get the sampler ready to sample
                             SamplePackage pack = compiler.configureSampler(sam);
+
+						    // Hack: save the package for any transaction
+						    // controllers
+						    threadContext.getVariables().putObject(PACKAGE_OBJECT, pack);
 
                             delay(pack.getTimers());
                             Sampler sampler = pack.getSampler();



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org