you can always use a java object that holds onto its state statically
...Similar example here
http://theworkaholic.blogspot.com/2013/03/sharing-session-ids-across-threads.html-
doesnt use groovy but its the same concept


On Thu, Mar 27, 2014 at 11:04 PM, Ryabtsev Vladimir <[email protected]>wrote:

> Sorry, of course I meant I want to pass Java Objects between threads.
> More exactly, I want to initialize some objects in setup Thread Group and
> get access to them from all thread in main thread group.
> Thus, I can use vars.putObject() because it stores variable only for those
> thread which put it.
> How can I share some objects between different threads if I'm using
> JSR223/groovy?
>
> -----
> V
>
>
> -----Original Message-----
> From: Ryabtsev Vladimir [mailto:[email protected]]
> Sent: Friday, March 28, 2014 9:04 AM
> To: [email protected]
> Subject: Equivalent of bsh.shared in groovy
>
> Hi,
>
> Is there any equivalent of bsh.shared namespace in JSR223/groovy?
> Or the only way to save Java objects between calls is to use
> vars.putObject()?
>
> Thanks,
> V
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to