On Mon, 06 Dec 2004 17:08:31 +0000, Eric Laverge <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> From the Bean shell, I call my Program to send JMS Messages (I cannot use
> the JMS Sampler for some reason).
> 

What errors do you get?
Which version of JMeter are you using?

> //Start  -------- BeanShell Sample --------
> 
> // The MyClient object will create a JMS Session.
> // This JMS Session cannot be multithreaded.
> // For Performance reason, I what to Create a JMS Session for each Thread
> but not on each Iteration.
> 
> MyClient myClient = new MyClient(); // How can I initialize this variable
> only once ?
> 

The usal way: define the variable as initially null, and then check
for null before creating a new Client in the sampler code.

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

Reply via email to