Hi,

My understanding is I could save an object using props.put() and retrieve it 
later using props.get() but instead I am getting a null, what can be the reason?

Following is what I am trying to do:

1. In a setup thread group, using a Beanshell sampler to create and 
KafkaProducer object, then save the object with props.put("KafkaProducer", 
producer);

within the same sampler, if I do 
log.info(props.get("KafkaProducer").getClass()); I get the expected class.

2. In a different Beanshell sampler, retrieve the object with 
props.get("KafkaProducer"); but I am getting a null.

What's wrong with this?

Thanks,
Jun


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to