1 27 package org.objectweb.jonas_ejb.deployment.rules; 28 29 import org.apache.commons.digester.Digester; 30 import org.objectweb.jonas_lib.deployment.rules.JRuleSetBase; 31 import org.objectweb.jonas_lib.deployment.rules.JonasEnvironmentRuleSet; 32 33 34 39 40 public class JonasMessageDrivenRuleSet extends JRuleSetBase { 41 42 46 public JonasMessageDrivenRuleSet(String prefix) { 47 super(prefix); 48 } 49 53 54 public void addRuleInstances(Digester digester) { 55 digester.addObjectCreate(prefix + "jonas-message-driven", 56 "org.objectweb.jonas_ejb.deployment.xml.JonasMessageDriven"); 57 digester.addSetNext(prefix + "jonas-message-driven", 58 "addJonasMessageDriven", 59 "org.objectweb.jonas_ejb.deployment.xml.JonasMessageDriven"); 60 digester.addCallMethod(prefix + "jonas-message-driven/ejb-name", 61 "setEjbName", 0); 62 digester.addRuleSet(new JonasMessageDrivenDestinationRuleSet(prefix 63 + "jonas-message-driven/")); 64 digester.addRuleSet(new ActivationConfigRuleSet(prefix + "jonas-message-driven/")); 65 digester.addRuleSet(new JonasEnvironmentRuleSet(prefix + "jonas-message-driven/")); 66 digester.addCallMethod(prefix + "jonas-message-driven/max-cache-size", 67 "setMaxCacheSize", 0); 68 digester.addCallMethod(prefix + "jonas-message-driven/min-pool-size", 69 "setMinPoolSize", 0); 70 digester.addRuleSet(new IorSecurityConfigRuleSet(prefix + "jonas-message-driven/")); 71 } 72 } 73 | Popular Tags |