If I understand you correctly as part of the setup you want to initialize some Java resources and make them available to other java sampler threads.
You can create a dummy Java sampler whose purpose is to perform the initialization. Do what you need to do in the setupTest() method. Also make sure the classes you are setting up are thread-safe. In teadownTest() call thread.sleep() and wait until all other threads are done. Jean-Louis PASTUREL wrote: > > Hi All, > I am a begginner with JMeter and this is my first post to this mailing > list, and sorry for perhaps faq questions. If it is, let me know. > Is it possible to do static initialisation in a Java Request Sample that > uses the parameters set in the panel of the the Java Request Sample ? > Or is there a better way with other feature of JMeter ( Pre-processor ?)? > Regards > JL Pasturel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/Java-Request-Sample.-static-initialization-tp23329885p23393678.html Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

