1 | void setJNDIIntialContextFactory(String icf) {↵ | | 1 | void setXmlPathLoc(String path) {↵
|
2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵ | | 2 | setProperty(XML_PATH_LOC, path);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * method returns the initial context factory for jndi initial context↵ | | 5 | * Get↵
|
6 | * lookup.↵ | | |
|
7 | * ↵ | | 6 | the path where XML messages are stored. this is the directory where↵
|
8 | * @return the initial context factory ↵ | | 7 | * JMeter will randomly select a file.↵
|
9 | */↵ | | 8 | */↵
|
10 | public String getJNDIInitialContextFactory() {↵ | | 9 | public String getXmlPathLoc() {↵
|
11 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵ | | 10 | return getPropertyAsString(↵
|
12 | }↵ | | |
|
|
13 | /**↵ | | |
|
14 | * set the provider user for jndi↵ | | |
|
15 | * ↵ | | |
|
16 | * @param url the provider URL↵ | | 11 | XML_PATH_LOC);↵
|
| | | 12 | }↵
|
|
| | | 13 | /**↵
|
| | | 14 | * it's kinda obvious, but we state it anyways. Set the xml file with a↵
|
| | | 15 | * string path.↵
|
| | | 16 | * ↵
|
| | | 17 | * @param filename↵
|
17 | */↵ | | 18 | */↵
|
18 | public void setProviderUrl(String url) {↵ | | 19 | public void set↵
|
19 | setProperty(PROVIDER_URL, url↵ | | 20 | XmlFile(String filename) {↵
|
20 | );↵ | | 21 | setProperty(XML_DATA_FILE, filename);↵
|
21 | } | | 22 | }
|