1 | void setConnectionFactory(String factory) {↵ | | 1 | void setJNDIIntialContextFactory(String icf) {↵
|
2 | setProperty(CONN_FACTORY, factory);↵ | | 2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the connection factory parameter used to lookup the connection↵ | | 5 | * method returns the ↵
|
6 | * factory from the JMS server↵ | | 6 | initial context factory for jndi initial context↵
|
| | | 7 | * lookup.↵
|
7 | * ↵ | | 8 | * ↵
|
8 | * @return the connection factory↵ | | 9 | * @return the initial context factory ↵
|
9 | */↵ | | 10 | */↵
|
10 | public String getConnectionFactory() {↵ | | 11 | public String getJNDIInitialContextFactory() {↵
|
11 | return getPropertyAsString(CONN_FACTORY);↵ | | 12 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵
|
12 | }↵ | | 13 | }↵
|
|
13 | /**↵ | | 14 | /**↵
|
14 | * set the topic↵ | | 15 | * set the ↵
|
15 | * ↵ | | |
|
16 | * @param topic↵ | | 16 | provider user for jndi↵
|
| | | 17 | * ↵
|
| | | 18 | * @param url the provider URL↵
|
17 | */↵ | | 19 | */↵
|
18 | public void setTopic(String topic) {↵ | | 20 | public void setProviderUrl(String url) {↵
|
19 | setProperty(TOPIC, topic);↵ | | 21 | setProperty(PROVIDER_URL, url);↵
|
20 | }↵ | | 22 | }↵
|
|
21 | /**↵ | | 23 | /**↵
|
22 | * return the topic used for the benchmark↵ | | 24 | * method returns the provider url for jndi to connect to↵
|
23 | * ↵ | | 25 | * ↵
|
24 | * @return the topic↵ | | 26 | * @return the provider URL↵
|
25 | */↵ | | 27 | */↵
|
26 | public String getTopic() {↵ | | 28 | public String getProviderUrl() {↵
|
27 | return getPropertyAsString(TOPIC);↵ | | 29 | return getPropertyAsString(PROVIDER_URL);↵
|
28 | | | 30 |
|