1 | void setProviderUrl(String url) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | setProperty(PROVIDER_URL, url);↵ | | 2 | setProperty(CONN_FACTORY, factory);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * method returns the provider url for jndi to connect to↵ | | 5 | * return the connection factory parameter used to lookup the connection↵
|
| | | 6 | * factory from the JMS server↵
|
6 | * ↵ | | 7 | * ↵
|
7 | * @return the provider URL↵ | | 8 | * @return the connection factory↵
|
8 | */↵ | | 9 | */↵
|
9 | public String getProviderUrl() {↵ | | 10 | public String getConnectionFactory() {↵
|
10 | return getPropertyAsString(PROVIDER_URL);↵ | | 11 | return getPropertyAsString(CONN_FACTORY);↵
|
11 | }↵ | | 12 | }↵
|
|
12 | /**↵ | | 13 | /**↵
|
13 | * set the connection factory for↵ | | 14 | * set the topic↵
|
14 | * ↵ | | 15 | * ↵
|
15 | * @param factory↵ | | 16 | * @param topic↵
|
16 | */↵ | | 17 | */↵
|
17 | public void setConnectionFactory(String factory) {↵ | | 18 | public void setTopic(String topic) {↵
|
18 | setProperty(CONN_FACTORY, factory);↵ | | 19 | setProperty(TOPIC, topic);↵
|
19 | | | 20 |
|