1 | String getUsername() {↵ | | 1 | String getJNDIInitialContextFactory() {↵
|
2 | return getPropertyAsString(PRINCIPAL);↵ | | 2 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Set the password to login to the jms server↵ | | 5 | * set the p↵
|
6 | * ↵ | | |
|
7 | * @param pwd↵ | | 6 | rovider user for jndi↵
|
| | | 7 | * ↵
|
| | | 8 | * @param url the provider URL↵
|
8 | */↵ | | 9 | */↵
|
9 | public void setPassword(String pwd) {↵ | | 10 | public void setProviderUrl(String url) {↵
|
10 | setProperty(CREDENTIALS, pwd);↵ | | 11 | setProperty(PROVIDER_URL, url);↵
|
11 | }↵ | | 12 | }↵
|
|
12 | /**↵ | | 13 | /**↵
|
13 | * return the password used to login to the jms server↵ | | 14 | * method returns the p↵
|
14 | * ↵ | | |
|
15 | * @return the password used to login to the jms server↵ | | 15 | rovider url for jndi to connect to↵
|
| | | 16 | * ↵
|
| | | 17 | * @return the provider URL↵
|
16 | */↵ | | 18 | */↵
|
17 | public String getPassword() {↵ | | 19 | public String getProviderUrl() {↵
|
18 | return getPropertyAsString(CREDENTIALS);↵ | | 20 | return getPropertyAsString(PROVIDER_URL);↵
|
19 | } | | 21 | }
|