1 | String getProviderUrl() {↵ | | 1 | String getTopic() {↵
|
2 | return getPropertyAsString(PROVIDER_URL);↵ | | 2 | return getPropertyAsString(TOPIC);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * set the connection factory for↵ | | 5 | * set the username to login into the jms server if needed↵
|
6 | * ↵ | | 6 | * ↵
|
7 | * @param factory↵ | | 7 | * @param user↵
|
8 | */↵ | | 8 | */↵
|
9 | public void setConnectionFactory(String factory) {↵ | | 9 | public void setUsername(String user) {↵
|
10 | setProperty(CONN_FACTORY, factory);↵ | | 10 | setProperty(PRINCIPAL, user);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * return the connection factory parameter used to lookup the connection↵ | | 13 | * return the ↵
|
14 | * factory from the JMS server↵ | | 14 | username used to login to the jms server↵
|
15 | * ↵ | | 15 | * ↵
|
16 | * @return the connection factory↵ | | 16 | * @return the username used to login to the jms server↵
|
17 | */↵ | | 17 | */↵
|
18 | public String getConnectionFactory() {↵ | | 18 | public String getUsername() {↵
|
19 | return getPropertyAsString(CONN_FACTORY);↵ | | 19 | return getPropertyAsString(PRINCIPAL);↵
|
20 | } | | 20 | }
|