1 | void setProviderUrl(String url) {↵ | | 1 | void setVarName(String name) {↵
|
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 | VAR_NAME, name);↵
|
| | | 4 | }↵
|
|
9 | public String getProviderUrl() {↵ | | 5 | public String getVarName() {↵
|
10 | return getPropertyAsString(PROVIDER_URL);↵ | | 6 | return getPropertyAsString(↵
|
11 | }↵ | | |
|
|
12 | /**↵ | | |
|
13 | * set the connection factory for↵ | | |
|
14 | * ↵ | | |
|
15 | * @param factory↵ | | |
|
16 | */↵ | | |
|
17 | public void setConnectionFactory(String factory) {↵ | | |
|
18 | setProperty(CONN_FACTORY, factory);↵ | | |
|
19 | }↵ | | |
|
|
20 | /**↵ | | |
|
21 | * return the connection factory parameter used to lookup the connection↵ | | |
|
22 | * factory from the JMS server↵ | | |
|
23 | * ↵ | | |
|
24 | * @return the connection factory↵ | | |
|
25 | */↵ | | |
|
26 | public String getConnectionFactory() {↵ | | |
|
27 | ↵ | | 7 | VAR_NAME);↵
|
| | | 8 | }↵
|
|
| | | 9 | public void setFormat(String format) {↵
|
| | | 10 | setProperty(FORMAT, format);↵
|
| | | 11 | }↵
|
|
| | | 12 | public String getFormat() {↵
|
28 | return getPropertyAsString(CONN_FACTORY);↵ | | 13 | return getPropertyAsString(↵
|
29 | ↵ | | 14 | FORMAT);↵
|
30 | } | | 15 | }
|