On 01/05/2009, Jean-Louis.Pasturel <[email protected]> wrote:
> sebb a écrit :
>
>
> >
> > On 01/05/2009, Jean-Louis.Pasturel
> <[email protected]> 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 ?)?
> > >
> > >
> >
> > I'm not sure what you are trying to do.
> >
> > The Java Request Sampler is a very basic sampler that allows one to
> > generate a simple sample response; not sure what static initialisation
> > has to do with that.
> >
> > Please explain in a bit more detail what you are trying to achieve,
> > and then maybe someone can provide suggestions as to how it might be
> > done.
> >
> >
> >
> > > Regards
> > > JL Pasturel
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > 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]
> >
> >
> ---------------------------------------------------------------------------------------
> > Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> >
> >
> >
> >
> >
>  Sorry,  i agree that I was not very  clear.
>  Exactly i don't know how JMeter and Java  Request Sample instanciates
> threads.

The StandardJMeterEngine creates threads; each Sampler instance runs
in a single thread.

> So i wondering if to use static variables ( not final)  has a sense
> in a Java  Request Sample.

No.

>  My goal, is to share objects ( with sometimes monitored accesses )  between
> threads ( for example :  a datapool, read by all the threads, counters,
> getting a local port not used by others threads ...).

But what are you trying to achieve?

>  Hope  i am more clear ...

Sorry, not really.

>  Regards
>  JL Pasturel
>
>
>
> ---------------------------------------------------------------------
>  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