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