1 22 package org.jboss.ejb3.embedded; 23 24 import java.util.Iterator ; 25 import java.util.Map ; 26 27 import javax.security.jacc.PolicyConfiguration ; 28 import javax.management.MBeanServer ; 29 import org.jboss.ejb3.DependencyPolicy; 30 import org.jboss.ejb3.DeploymentUnit; 31 import org.jboss.ejb3.service.ServiceContainer; 32 import org.jboss.ejb3.Container; 33 import org.jboss.ejb3.Ejb3Deployment; 34 import org.jboss.ejb3.MCDependencyPolicy; 35 import org.jboss.ejb3.MCKernelAbstraction; 36 import org.jboss.ejb3.security.JaccHelper; 37 import org.jboss.kernel.Kernel; 38 39 45 public class EJB3StandaloneDeployment extends Ejb3Deployment 46 { 47 public EJB3StandaloneDeployment(DeploymentUnit di, Kernel kernel, MBeanServer mbeanServer) 48 { 49 super(di, null); 50 51 defaultSFSBDomain = "Embedded Stateful Bean"; 52 kernelAbstraction = new MCKernelAbstraction(kernel, mbeanServer); 53 this.mbeanServer = mbeanServer; 54 } 55 56 public void setMbeanServer(MBeanServer mbeanServer) 57 { 58 super.setMbeanServer(mbeanServer); 59 60 kernelAbstraction.setMbeanServer(mbeanServer); 61 } 62 63 protected void putJaccInService(PolicyConfiguration pc, DeploymentUnit unit) 64 { 65 75 } 76 77 protected PolicyConfiguration createPolicyConfiguration() throws Exception 78 { 79 return JaccHelper.initialiseJacc(getJaccContextId()); 80 } 81 82 198 199 public DependencyPolicy createDependencyPolicy() 200 { 201 return new MCDependencyPolicy(); 202 } 203 204 } 217 | Popular Tags |