1 | void setClassname(String classname)↵ | | 1 | void set↵
|
2 | {↵ | | |
|
3 | setProperty(CLASSNAME, classname);↵ | | |
|
4 | ↵ | | 2 | ProviderUrl(String url) {↵
|
| | | 3 | setProperty(PROVIDER_URL, url);↵
|
5 | }↵ | | 4 | }↵
|
|
6 | /**↵ | | 5 | /**↵
|
7 | * Gets the Classname attribute of the JavaConfig object↵ | | 6 | * met↵
|
8 | ↵ | | 7 | hod returns the provider url for jndi to connect to↵
|
9 | *↵ | | 8 | * ↵
|
10 | * @return the Classname value↵ | | 9 | * @return the ↵
|
11 | ↵ | | 10 | provider URL↵
|
12 | */↵ | | 11 | */↵
|
13 | public String getClassname()↵ | | 12 | public String get↵
|
14 | {↵ | | |
|
15 | return getPropertyAsString(CLASSNAME);↵ | | |
|
16 | }↵ | | |
|
17 | ↵ | | |
|
18 | ↵ | | 13 | ProviderUrl() {↵
|
| | | 14 | return getPropertyAsString(PROVIDER_URL);↵
|
| | | 15 | }↵
|
|
19 | /**↵ | | 16 | /**↵
|
20 | * Set the string label used to create an instance of the↵ | | 17 | * set the ↵
|
21 | * test with the string constructor.↵ | | 18 | connection factory for↵
|
22 | ↵ | | 19 | * ↵
|
23 | * @param constr↵ | | 20 | * @param ↵
|
24 | ↵ | | 21 | factory↵
|
25 | */↵ | | 22 | */↵
|
26 | public void setConstructorString(String constr)↵ | | 23 | public void setCon↵
|
27 | {↵ | | |
|
28 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
29 | }↵ | | |
|
30 | ↵ | | |
|
31 | ↵ | | 24 | nectionFactory(String factory) {↵
|
| | | 25 | setProperty(CONN_FACTORY, factory);↵
|
| | | 26 | }↵
|
|
32 | /**↵ | | 27 | /**↵
|
33 | * get the string passed to the string constructor↵ | | 28 | * return the ↵
|
34 | ↵ | | 29 | connection factory parameter used to lookup the connection↵
|
| | | 30 | * factory from the JMS server↵
|
35 | */↵ | | 31 | * ↵
|
36 | ↵ | | 32 | * @return the connection factory↵
|
| | | 33 | */↵
|
37 | public String getConstructorString()↵ | | 34 | public String getCon↵
|
38 | {↵ | | |
|
39 | ↵ | | 35 | nectionFactory() {↵
|
40 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 36 | return getPropertyAsString(CON↵
|
41 | | | 37 | N_FACTORY);↵
|
| | | 38 |
|