On Mon, 17 Jan 2005 16:39:43 -0600, Anil Philip
<[EMAIL PROTECTED]> wrote:
> I am writing a CorbaSampler (aka TCPSampler()).
>
> In my SamplerGUI, am I creating the sampler in the correct place?
I don't think so.
GUI sampler classes should only do what is necessary to ensure that
the display agrees with the test element.
They should not create anything needed by the sampler, otherwise the
sampler won't work in non-GUI mode...
> public TestElement createTestElement()
>
> {
>
> CorbaSampler sampler = new CorbaSampler();
>
> modifyTestElement(sampler);
>
> return sampler;
>
> }
>
> However I find that createTestElement() is indirectly called from several
> places by JMeter (26 places!).
>
> So after I initially create JMeter, I set some data in it. In the sample()
> call, I try to retrieve the data but find that a *new* instance of
> CorbaSampler() has been created! So that now my data is lost.
Not surprising ...!
> Thanks,
>
> Anil Philip
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]