Package org.jboss.ejb3

Examples of org.jboss.ejb3.MCKernelAbstraction$AlreadyInstantiated


//      return kernel;
//   }

   private KernelAbstraction getKernelAbstraction()
   {
      return new MCKernelAbstraction(kernel, server);
   }
View Full Code Here


   public EJB3StandaloneDeployment(DeploymentUnit di, Kernel kernel, MBeanServer mbeanServer)
   {
      super(di, null, null, null, null);
  
      defaultSFSBDomain = "Embedded Stateful Bean";
      kernelAbstraction = new MCKernelAbstraction(kernel, mbeanServer);
      this.mbeanServer = mbeanServer;
   }
View Full Code Here

/*    */
/*    */   public Ejb3JBoss5Deployment(org.jboss.ejb3.DeploymentUnit ejb3Unit, Kernel kernel, MBeanServer mbeanServer, org.jboss.deployers.structure.spi.DeploymentUnit jbossUnit, DeploymentScope deploymentScope, JBossMetaData metaData, PersistenceUnitsMetaData persistenceUnitsMetaData, Ejb3Deployer deployer)
/*    */   {
/* 54 */     super(ejb3Unit, deploymentScope, metaData, persistenceUnitsMetaData, deployer);
/* 55 */     this.jbossUnit = jbossUnit;
/* 56 */     this.kernelAbstraction = new MCKernelAbstraction(kernel, mbeanServer);
/*    */
/* 59 */     this.mbeanServer = mbeanServer;
/*    */   }
View Full Code Here

/* 168 */     return jndiName;
/*     */   }
/*     */
/*     */   private KernelAbstraction getKernelAbstraction()
/*     */   {
/* 178 */     return new MCKernelAbstraction(this.kernel, this.server);
/*     */   }
View Full Code Here

/*     */   public EJB3StandaloneDeployment(DeploymentUnit di, Kernel kernel, MBeanServer mbeanServer)
/*     */   {
/*  48 */     super(di, null, null, null, null);
/*     */
/*  50 */     this.defaultSFSBDomain = "Embedded Stateful Bean";
/*  51 */     this.kernelAbstraction = new MCKernelAbstraction(kernel, mbeanServer);
/*  52 */     this.mbeanServer = mbeanServer;
/*     */   }
View Full Code Here

      if(this.cache!=null && this.cache.isStarted())
      {
         return;
      }
     
      Cache cacheConfig = getAnnotation(Cache.class);
      CacheFactoryRegistry registry = getCacheFactoryRegistry();
      Ejb3CacheFactory factory = registry.getCacheFactory(cacheConfig.value());
      this.cache = factory.createCache();
      this.cache.initialize(this);
      this.cache.start();
   }
View Full Code Here

   public StatefulBeanContext create(Class<?>[] initTypes, Object[] initValues)
   {
      StatefulBeanContext sfctx = (StatefulBeanContext) createBeanContext();
      // Tell context how to handle replication
      CacheConfig config = getAnnotation(CacheConfig.class);
      if (config != null)
      {
         sfctx.setReplicationIsPassivation(config.replicationIsPassivation());
      }

      // this is for propagated extended PC's
      sfctx = sfctx.pushContainedIn();
     
View Full Code Here

      return null;
   }
  
   protected void findPartitionName()
   {
      Clustered clustered = (Clustered) getAnnotation(Clustered.class);
      if (clustered == null)
      {
         partitionName = null;
         return;
      }
     
      String value = clustered.partition();
      try
      {
         String replacedValue = StringPropertyReplacer.replaceProperties(value);
         if (value != replacedValue)
         {           
View Full Code Here

            .getProxyFactory(binding);

      if (factory == null)
      {

         Clustered clustered = getAnnotation(Clustered.class);
         if (clustered != null)
         {
            factory = new StatefulClusterProxyFactory(this, binding, clustered);
         }
         else
View Full Code Here

   }

   private static String getLocalJndiName(JBossEnterpriseBeanMetaData ejb, Class<?> ejbClass)
   {
      // See if local binding is explicitly-defined
      LocalBinding localBinding = ejbClass.getAnnotation(LocalBinding.class);

      // If none specified
      if (localBinding == null || (localBinding.jndiBinding() != null && localBinding.jndiBinding().trim().length() == 0))
      {
         String name = ejb.getLocalJndiName();
         return name;
      }
      // Local Binding was explicitly-specified, use it
      else
      {
         return localBinding.jndiBinding();
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.MCKernelAbstraction$AlreadyInstantiated

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.