1 | void setRandomPath(String path) {↵ | | 1 | void setProviderUrl(String url) {↵
|
2 | setProperty(RANDOM_PATH, path);↵ | | 2 | setProperty(PROVIDER_URL, url);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the random path for messages↵ | | 5 | * method returns the ↵
|
6 | * ↵ | | 6 | provider url for jndi to connect to↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the provider URL↵
|
7 | */↵ | | 9 | */↵
|
8 | public String getRandomPath() {↵ | | 10 | public String getProviderUrl() {↵
|
9 | return getPropertyAsString(RANDOM_PATH);↵ | | 11 | return getPropertyAsString(PROVIDER_URL);↵
|
10 | }↵ | | 12 | }↵
|
|
11 | /**↵ | | 13 | /**↵
|
12 | * set the text for the message↵ | | 14 | * set the connection factory for↵
|
13 | * ↵ | | 15 | * ↵
|
14 | * @param message↵ | | 16 | * @param factory↵
|
15 | */↵ | | 17 | */↵
|
16 | public void setTextMessage(String message) {↵ | | 18 | public void setConnectionFactory(String factory) {↵
|
17 | setProperty(TEXT_MSG, message);↵ | | 19 | setProperty(CONN_FACTORY, factory);↵
|
18 | }↵ | | 20 | }↵
|
|
19 | /**↵ | | 21 | /**↵
|
20 | * return the text for the message↵ | | 22 | * return the ↵
|
21 | * ↵ | | 23 | connection factory parameter used to lookup the connection↵
|
| | | 24 | * factory from the JMS server↵
|
| | | 25 | * ↵
|
| | | 26 | * @return the connection factory↵
|
22 | */↵ | | 27 | */↵
|
23 | public String getTextMessage() {↵ | | 28 | public String getConnectionFactory() {↵
|
24 | return getPropertyAsString(TEXT_MSG);↵ | | 29 | return getPropertyAsString(CONN_FACTORY);↵
|
25 | | | 30 |
|