1 | void setJNDIIntialContextFactory(String icf) {↵ | | 1 | void set↵
|
2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵ | | |
|
3 | ↵ | | 2 | Classname(String classname)↵
|
| | | 3 | {↵
|
| | | 4 | setProperty(CLASSNAME, classname);↵
|
4 | }↵ | | 5 | }↵
|
|
5 | /**↵ | | 6 | /**↵
|
6 | * method returns the initial context factory for jndi initial context↵ | | |
|
7 | * lookup.↵ | | |
|
8 | * ↵ | | |
|
9 | ↵ | | 7 | * Gets the Classname attribute of the JavaConfig object↵
|
| | | 8 | *↵
|
10 | * @return the initial context factory ↵ | | 9 | * @return the ↵
|
11 | ↵ | | 10 | Classname value↵
|
12 | */↵ | | 11 | */↵
|
13 | public String getJNDIInitialContextFactory() {↵ | | 12 | public String get↵
|
14 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵ | | |
|
15 | }↵ | | |
|
|
16 | ↵ | | 13 | Classname()↵
|
| | | 14 | {↵
|
| | | 15 | return getPropertyAsString(CLASSNAME);↵
|
| | | 16 | }↵
|
| | | 17 | ↵
|
17 | /**↵ | | 18 | /**↵
|
18 | * set the provider user for jndi↵ | | 19 | * Set the ↵
|
19 | * ↵ | | |
|
20 | * @param url the provider URL↵ | | |
|
21 | ↵ | | 20 | string label used to create an instance of the↵
|
| | | 21 | * test with the string constructor.↵
|
| | | 22 | * @param constr↵
|
22 | */↵ | | 23 | */↵
|
23 | public void setProviderUrl(String url) {↵ | | 24 | public void set↵
|
24 | setProperty(PROVIDER_URL, url);↵ | | |
|
25 | | | 25 | ConstructorString(String constr)↵
|
| | | 26 | {↵
|
| | | 27 | setProperty(CONSTRUCTORSTRING,constr);↵
|
| | | 28 |
|