1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class JonasMessageDrivenDestination extends AbsElement { 37 38 41 private String jndiName = null; 42 43 44 47 public JonasMessageDrivenDestination() { 48 super(); 49 } 50 51 55 public String getJndiName() { 56 return jndiName; 57 } 58 59 63 public void setJndiName(String jndiName) { 64 this.jndiName = jndiName; 65 } 66 67 72 public String toXML(int indent) { 73 StringBuffer sb = new StringBuffer (); 74 sb.append(indent(indent)); 75 sb.append("<jonas-message-driven-destination>\n"); 76 77 indent += 2; 78 79 sb.append(xmlElement(jndiName, "jndi-name", indent)); 81 indent -= 2; 82 sb.append(indent(indent)); 83 sb.append("</jonas-message-driven-destination>\n"); 84 85 return sb.toString(); 86 } 87 } 88 | Popular Tags |