1 | void setJNDIIntialContextFactory(String icf) {↵ | | 1 | void setConnectionFactory(String factory) {↵
|
2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵ | | 2 | setProperty(CONN_FACTORY, factory);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * method returns the initial context factory for jndi initial context↵ | | 5 | * return the ↵
|
6 | * lookup.↵ | | 6 | connection factory parameter used to lookup the connection↵
|
| | | 7 | * factory from the JMS server↵
|
7 | * ↵ | | 8 | * ↵
|
8 | * @return the initial context factory ↵ | | 9 | * @return the connection factory↵
|
9 | */↵ | | 10 | */↵
|
10 | public String getJNDIInitialContextFactory() {↵ | | 11 | public String getConnectionFactory() {↵
|
11 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵ | | 12 | return getPropertyAsString(CONN_FACTORY);↵
|
12 | }↵ | | 13 | }↵
|
|
13 | /**↵ | | 14 | /**↵
|
14 | * set the provider user for jndi↵ | | 15 | * set the ↵
|
15 | * ↵ | | |
|
16 | * @param url the provider URL↵ | | 16 | topic↵
|
| | | 17 | * ↵
|
| | | 18 | * @param topic↵
|
17 | */↵ | | 19 | */↵
|
18 | public void setProviderUrl(String url) {↵ | | 20 | public void setTopic(String topic) {↵
|
19 | setProperty(PROVIDER_URL, url);↵ | | 21 | setProperty(TOPIC, topic);↵
|
20 | | | 22 |
|