1 | void setInputFile(String file) {↵ | | 1 | void setProviderUrl(String url) {↵
|
2 | setProperty(INPUT_FILE, file);↵ | | 2 | setProperty(PROVIDER_URL, url);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the path of the input file↵ | | 5 | * method returns the p↵
|
6 | * ↵ | | 6 | rovider url for jndi to connect to↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the provider URL↵
|
7 | */↵ | | 9 | */↵
|
8 | public String getInputFile() {↵ | | 10 | public String getProviderUrl() {↵
|
9 | return getPropertyAsString(INPUT_FILE);↵ | | 11 | return getPropertyAsString(PROVIDER_URL);↵
|
10 | }↵ | | 12 | }↵
|
|
11 | /**↵ | | 13 | /**↵
|
12 | * set the random path for the messages↵ | | 14 | * set the connection factory for↵
|
13 | * ↵ | | 15 | * ↵
|
14 | * @param path↵ | | 16 | * @param factory↵
|
15 | */↵ | | 17 | */↵
|
16 | public void setRandomPath(String path) {↵ | | 18 | public void setConnectionFactory(String factory) {↵
|
17 | setProperty(RANDOM_PATH, path);↵ | | 19 | setProperty(CONN_FACTORY, factory);↵
|
18 | }↵ | | 20 | }↵
|
|
19 | /**↵ | | 21 | /**↵
|
20 | * return the random path for messages↵ | | 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 getRandomPath() {↵ | | 28 | public String getConnectionFactory() {↵
|
24 | return getPropertyAsString(RANDOM_PATH);↵ | | 29 | return getPropertyAsString(CONN_FACTORY);↵
|
25 | } | | 30 | }
|