I'm tried to store an Object in JMeter property using 
${__setProperty("object", Object)} 
and then I tried to get this Object:
(Object)(${__P("object")});

(beanshell sampler)

Jmeter hunging.... :) I may to stop it only pressing Ctrl+Period :)


sebb-2 wrote:
> 
> I did not say it was the only way...
> 
> If you are creating the JMeter property value once, and accessing it
> multiple times, then using a JMeter property should be safe.
> 
> Though I must admit that I don't think I have ever tried storing an
> Object in a property ... on reflection I'm not sure it will work.
> 
> Are you sure that you want to share the Object between all threads?
> 
> Normally, threads represent independent users, so they don't share
> objects - as far as possible.
> 
> This avoids synchronisation problems and overhead.
> 
> S.
> On 14/12/06, vetalok <[EMAIL PROTECTED]> wrote:
>>
>> So there is only one way: set JMeter property ?
>> I need to create some Object before starting threads placed within
>> ThredGrop.
>> Then this threads will use the Object.
>>
>>
>> sebb-2 wrote:
>> >
>> > You could try using a JMeter property, but you may well run into
>> > synchronisation issues. In which case you are on your own...
>> >
>> > Normally JMeter properties are only read, not written (apart from
>> > initially).
>> >
>> > I have successfully used a JMeter property to control throughput from
>> > a BeanShell server, but the value was updated only infrequently, so I
>> > may have been lucky.
>> >
>> > S.
>> > On 14/12/06, vetalok <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi all
>> >> How can I pass Object between Thread Groups?
>> >> Between samplers I just can do vars.putObject(), and what about
>> >> ThreadsGroup
>> >> Any ideas?
>> >> Thanks
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/How-can-I-pass-Object-between-Thread-Groups--tf2819714.html#a7870154
>> >> Sent from the JMeter - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-I-pass-Object-between-Thread-Groups--tf2819714.html#a7871051
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-pass-Object-between-Thread-Groups--tf2819714.html#a7874225
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to