mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
update JMS to API changes
This commit is contained in:
parent
22827c4b1d
commit
53acf75438
@ -35,7 +35,6 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
|
|
||||||
import javax.jms.Destination;
|
import javax.jms.Destination;
|
||||||
import javax.jms.JMSContext;
|
import javax.jms.JMSContext;
|
||||||
import javax.jms.JMSException;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
|
||||||
|
|
||||||
@ -106,13 +105,8 @@ public class JmsActivity extends SimpleActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PulsarConnectionFactory factory;
|
PulsarConnectionFactory factory;
|
||||||
try {
|
factory = new PulsarConnectionFactory(jmsConnInfo.getJmsConnConfig());
|
||||||
factory = new PulsarConnectionFactory(jmsConnInfo.getJmsConnConfig());
|
this.jmsContext = factory.createContext();
|
||||||
this.jmsContext = factory.createContext();
|
|
||||||
} catch (JMSException e) {
|
|
||||||
throw new RuntimeException(
|
|
||||||
"Unable to initialize JMS connection factory (driver type: " + jmsProviderType + ")!");
|
|
||||||
}
|
|
||||||
|
|
||||||
bindTimer = ActivityMetrics.timer(activityDef, "bind");
|
bindTimer = ActivityMetrics.timer(activityDef, "bind");
|
||||||
executeTimer = ActivityMetrics.timer(activityDef, "execute");
|
executeTimer = ActivityMetrics.timer(activityDef, "execute");
|
||||||
|
Loading…
Reference in New Issue
Block a user