* Create the OnMessageSubscriber client and set the sampler as the message
* listener.
*
*/
public synchronized OnMessageSubscriber initListenerClient() {
OnMessageSubscriber sub = (OnMessageSubscriber) ClientPool.get(this);
if (sub == null) {
sub = new OnMessageSubscriber(this.getUseJNDIPropertiesAsBoolean(), this.getJNDIInitialContextFactory(),
this.getProviderUrl(), this.getConnectionFactory(), this.getTopic(), this.getUseAuth(), this
.getUsername(), this.getPassword());
sub.setMessageListener(this);
sub.resume();
ClientPool.addClient(sub);
ClientPool.put(this, sub);
log.info("SubscriberSampler.initListenerClient called");
log.info("loop count " + this.getIterations());
}