1 | String getProviderUrl() {↵ | | 1 | String getXmlPathLoc() {↵
|
2 | return getPropertyAsString(PROVIDER_URL);↵ | | 2 | return getPropertyAsString(XML_PATH_LOC);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * set the connection factory for↵ | | 5 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 6 | * string path.↵
|
6 | * ↵ | | 7 | * ↵
|
7 | * @param factory↵ | | 8 | * @param filename↵
|
8 | */↵ | | 9 | */↵
|
9 | public void setConnectionFactory(String factory) {↵ | | 10 | public void setXmlFile(String filename) {↵
|
10 | setProperty(CONN_FACTORY, factory);↵ | | 11 | setProperty(XML_DATA_FILE, filename);↵
|
11 | }↵ | | 12 | }↵
|
|
12 | /**↵ | | 13 | /**↵
|
13 | * return the connection factory parameter used to lookup the connection↵ | | 14 | * Get the ↵
|
14 | * factory from the JMS server↵ | | |
|
15 | * ↵ | | |
|
16 | * @return the connection factory↵ | | 15 | file location of the xml file.↵
|
| | | 16 | * ↵
|
| | | 17 | * @return String file path.↵
|
17 | */↵ | | 18 | */↵
|
18 | public String getConnectionFactory() {↵ | | 19 | public String getXmlFile() {↵
|
19 | return getPropertyAsString(CONN_FACTORY);↵ | | 20 | return getPropertyAsString(XML_DATA_FILE);↵
|
20 | } | | 21 | }
|