1 | void setConnectionFactory(String factory) {↵ | | 1 | void setC↵
|
2 | setProperty(CONN_FACTORY, factory);↵ | | |
|
3 | ↵ | | 2 | lassname(String classname)↵
|
| | | 3 | {↵
|
| | | 4 | setProperty(CLASSNAME, classname);↵
|
4 | }↵ | | 5 | }↵
|
|
5 | /**↵ | | 6 | /**↵
|
6 | * return the connection factory parameter used to lookup the connection↵ | | 7 | * Gets the ↵
|
7 | * factory from the JMS server↵ | | |
|
8 | * ↵ | | |
|
9 | ↵ | | 8 | Classname attribute of the JavaConfig object↵
|
| | | 9 | *↵
|
10 | * @return the connection factory↵ | | 10 | * @return the ↵
|
11 | ↵ | | 11 | Classname value↵
|
12 | */↵ | | 12 | */↵
|
13 | public String getConnectionFactory() {↵ | | 13 | public String getC↵
|
14 | ↵ | | 14 | lassname()↵
|
| | | 15 | {↵
|
15 | return getPropertyAsString(CONN_FACTORY);↵ | | 16 | return getPropertyAsString(C↵
|
16 | }↵ | | |
|
|
17 | ↵ | | 17 | LASSNAME);↵
|
| | | 18 | }↵
|
| | | 19 | ↵
|
18 | /**↵ | | 20 | /**↵
|
19 | * set the topic↵ | | 21 | * Set the ↵
|
20 | * ↵ | | |
|
21 | * @param topic↵ | | |
|
22 | ↵ | | 22 | string label used to create an instance of the↵
|
| | | 23 | * test with the string constructor.↵
|
| | | 24 | * @param constr↵
|
23 | */↵ | | 25 | */↵
|
24 | public void setTopic(String topic) {↵ | | 26 | public void set↵
|
25 | setProperty(TOPIC, topic);↵ | | |
|
26 | ↵ | | 27 | ConstructorString(String constr)↵
|
| | | 28 | {↵
|
| | | 29 | setProperty(CONSTRUCTORSTRING,constr);↵
|
27 | } | | 30 | }
|