KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > tool > properties > JmsClientProperties


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18 package org.apache.activemq.tool.properties;
19
20 public class JmsClientProperties extends AbstractObjectProperties {
21     public static final String JavaDoc SESSION_AUTO_ACKNOWLEDGE = "autoAck";
22     public static final String JavaDoc SESSION_CLIENT_ACKNOWLEDGE = "clientAck";
23     public static final String JavaDoc SESSION_DUPS_OK_ACKNOWLEDGE = "dupsAck";
24     public static final String JavaDoc SESSION_TRANSACTED = "transacted";
25
26     protected String JavaDoc destName = "TEST.FOO";
27     protected boolean destComposite = false;
28
29     protected String JavaDoc sessAckMode = SESSION_AUTO_ACKNOWLEDGE;
30     protected boolean sessTransacted = false;
31
32     protected String JavaDoc jmsProvider = null;
33     protected String JavaDoc jmsVersion = null;
34     protected String JavaDoc jmsProperties = null;
35
36     public String JavaDoc getDestName() {
37         return destName;
38     }
39
40     public void setDestName(String JavaDoc destName) {
41         this.destName = destName;
42     }
43
44     public boolean isDestComposite() {
45         return destComposite;
46     }
47
48     public void setDestComposite(boolean destComposite) {
49         this.destComposite = destComposite;
50     }
51
52     public String JavaDoc getSessAckMode() {
53         return sessAckMode;
54     }
55
56     public void setSessAckMode(String JavaDoc sessAckMode) {
57         this.sessAckMode = sessAckMode;
58     }
59
60     public boolean isSessTransacted() {
61         return sessTransacted;
62     }
63
64     public void setSessTransacted(boolean sessTransacted) {
65         this.sessTransacted = sessTransacted;
66     }
67
68     public String JavaDoc getJmsProvider() {
69         return jmsProvider;
70     }
71
72     public void setJmsProvider(String JavaDoc jmsProvider) {
73         this.jmsProvider = jmsProvider;
74     }
75
76     public String JavaDoc getJmsVersion() {
77         return jmsVersion;
78     }
79
80     public void setJmsVersion(String JavaDoc jmsVersion) {
81         this.jmsVersion = jmsVersion;
82     }
83
84     public String JavaDoc getJmsProperties() {
85         return jmsProperties;
86     }
87
88     public void setJmsProperties(String JavaDoc jmsProperties) {
89         this.jmsProperties = jmsProperties;
90     }
91 }
92
Popular Tags