Note that there is already a TCP sampler - though it is fairly simple
at present.

S.


On Tue, 21 Sep 2004 11:16:29 -0400, Michael Stover <[EMAIL PROTECTED]> wrote:
> That seems like exactly the sort of thing you'd do in one thread.  An
> initial request gets some data and a subsequent request uses it.  How
> else would you manage 100 threads doing this?
> 
> -Mike
> 
> On Tue, 2004-09-21 at 10:53, [EMAIL PROTECTED] wrote:
> > Okay, so how can I do it?
> > What I'm planing, is to use in one thread, a derived
> > 'AbstractJavaSamplerClient' to get TCP/IP packet (a request) and to pars
> > it. according to this request, another thread will send another request
> > (let's say the ack part) - using other derived
> > 'AbstractJavaSamplerClient' that will be under an 'IfController' (in the
> > 'IfController' the user will "ask" if a specific value equals to
> > something).
> > I don't think it's wise to do both process in the same thread.
> >
> > Thanks again, especially for your quick answer.
> >
> > On Tue, 21 Sep 2004 09:50:01 -0400, "Michael Stover"
> > <[EMAIL PROTECTED]> said:
> > > Variables are not shared across threads.  JMeter simulates multiple
> > > independent users, so there hasn't been any need to shared data amongst
> > > the threads during the test run.
> > >
> > > -Mike
> > >
> > > On Tue, 2004-09-21 at 09:27, [EMAIL PROTECTED] wrote:
> > > > I want to save variables that were initialized in one thread, so they
> > > > will be seen in other thread.
> > > > There is an easy way to save variables in the thread's context:
> > > > JMeterContext context = getThreadContext();
> > > > JMeterVariables vars = context.getVariables();
> > > > vars.put(....
> > > >
> > > > But trying to save variables so they will be seen in all the threads is
> > > > much harder, I looked at: PreCompiler.addNode(Object,HashTree)
> > > > and in my code tried naively to write:
> > > > JMeterContextService.getContext().getVariables().put("code", "value");
> > > > but this key was unvisible in other threads. I've noticed that there is
> > > > some action doing with an instance of 'ValueReplacer' in the 'addNode'
> > > > func, but still didn't figure to find out what to do.
> > > > Tips will be most welcom
> > > >
> > > > Thanks.
> > > --
> > > Michael Stover <[EMAIL PROTECTED]>
> > > Apache Software Foundation
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> -- 
> 
> 
> Michael Stover <[EMAIL PROTECTED]>
> Apache Software Foundation
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to