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 JonasSessionRuleSet extends JRuleSetBase { 41 42 46 public JonasSessionRuleSet(String prefix) { 47 super(prefix); 48 } 49 53 54 public void addRuleInstances(Digester digester) { 55 digester.addObjectCreate(prefix + "jonas-session", 56 "org.objectweb.jonas_ejb.deployment.xml.JonasSession"); 57 digester.addSetNext(prefix + "jonas-session", 58 "addJonasSession", 59 "org.objectweb.jonas_ejb.deployment.xml.JonasSession"); 60 digester.addCallMethod(prefix + "jonas-session/ejb-name", 61 "setEjbName", 0); 62 digester.addCallMethod(prefix + "jonas-session/jndi-name", 63 "setJndiName", 0); 64 digester.addCallMethod(prefix + "jonas-session/jndi-local-name", 65 "setJndiLocalName", 0); 66 digester.addCallMethod(prefix + "jonas-session/jndi-endpoint-name", 67 "setJndiEndpointName", 0); 68 digester.addRuleSet(new JonasEnvironmentRuleSet(prefix + "jonas-session/")); 69 70 digester.addCallMethod(prefix + "jonas-session/session-timeout", 71 "setSessionTimeout", 0); 72 digester.addCallMethod(prefix + "jonas-session/max-cache-size", 73 "setMaxCacheSize", 0); 74 digester.addCallMethod(prefix + "jonas-session/min-pool-size", 75 "setMinPoolSize", 0); 76 digester.addRuleSet(new IorSecurityConfigRuleSet(prefix + "jonas-session/")); 77 78 } 79 } 80 | Popular Tags |