1 | void setXmlData(String data) {↵ | | 1 | void setProviderUrl(String url) {↵
|
2 | setProperty(XML_DATA, data);↵ | | 2 | setProperty(↵
|
3 | }↵ | | |
|
| | | 3 | PROVIDER_URL, url);↵
|
| | | 4 | }↵
|
|
| | | 5 | /**↵
|
| | | 6 | * method returns the provider url for jndi to connect to↵
|
| | | 7 | * ↵
|
| | | 8 | * @return the provider URL↵
|
| | | 9 | */↵
|
4 | public String getXmlData() {↵ | | 10 | public String getProviderUrl() {↵
|
5 | return getPropertyAsString(XML_DATA);↵ | | 11 | return getPropertyAsString(PROVIDER_URL);↵
|
6 | }↵ | | 12 | }↵
|
|
7 | /**↵ | | 13 | /**↵
|
8 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵ | | |
|
9 | * string path.↵ | | |
|
10 | *↵ | | |
|
11 | * @param filename↵ | | |
|
12 | ↵ | | 14 | * set the connection factory for↵
|
| | | 15 | * ↵
|
| | | 16 | * @param factory↵
|
13 | */↵ | | 17 | */↵
|
14 | public void setXmlFile(String filename) {↵ | | 18 | public void set↵
|
15 | setProperty(XML_DATA_FILE, filename);↵ | | |
|
16 | ↵ | | 19 | ConnectionFactory(String factory) {↵
|
| | | 20 | setProperty(CONN_FACTORY, factory);↵
|
17 | }↵ | | 21 | }↵
|
|
18 | /**↵ | | 22 | /**↵
|
19 | * Get the file location of the xml file.↵ | | 23 | * return the ↵
|
20 | *↵ | | |
|
21 | * @return String file path.↵ | | |
|
22 | ↵ | | 24 | connection factory parameter used to lookup the connection↵
|
| | | 25 | * factory from the JMS server↵
|
| | | 26 | * ↵
|
| | | 27 | * @return the connection factory↵
|
23 | */↵ | | 28 | */↵
|
24 | public String getXmlFile() {↵ | | 29 | public String get↵
|
25 | ↵ | | 30 | ConnectionFactory() {↵
|
26 | return getPropertyAsString(XML_DATA_FILE);↵ | | 31 | return getPropertyAsString(↵
|
27 | | | 32 | CONN_FACTORY);↵
|
| | | 33 |
|