KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > dd > MessageDrivenDestination


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.ejb3.dd;
8
9 import javax.ejb.TransactionManagementType JavaDoc;
10
11 import org.jboss.ejb3.tx.TxUtil;
12 import org.jboss.logging.Logger;
13
14 /**
15  * Represents a message-driven-destination element of the ejb-jar.xml deployment descriptor for
16  * the 1.4 schema
17  *
18  * @version <tt>$Revision: 1.2.2.1 $</tt>
19  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
20  */

21 public class MessageDrivenDestination
22 {
23    private static final Logger log = Logger.getLogger(MessageDrivenDestination.class);
24
25    // ejb-jar.xml
26
private String JavaDoc destinationType;
27
28    private String JavaDoc subscriptionDurability;
29
30    public String JavaDoc getDestinationType()
31    {
32       return destinationType;
33    }
34
35    public void setDestinationType(String JavaDoc destinationType)
36    {
37       this.destinationType = destinationType;
38    }
39
40    public String JavaDoc getSubscriptionDurability()
41    {
42       return subscriptionDurability;
43    }
44
45    public void setSubscriptionDurability(String JavaDoc subscriptionDurability)
46    {
47       this.subscriptionDurability = subscriptionDurability;
48    }
49
50    public String JavaDoc toString()
51    {
52       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
53       sb.append('[');
54       sb.append("destinationType=").append(destinationType);
55       sb.append(']');
56       return sb.toString();
57    }
58 }
59
Popular Tags