Examples of DeploymentScope


Examples of org.jboss.ejb3.DeploymentScope

            return;
         }
           
         log.debug("********* " + this.getClass().getSimpleName() + " Begin Unit: " + unit.getSimpleName() + " jar: "
               + jar.getName());
         DeploymentScope scope = null;
         VFSDeploymentUnit parent = unit.getParent();
         if (parent != null && parent.getSimpleName().endsWith(".ear")) // todo should look for metadata instead of ".ear"
         {
            scope = parent.getAttachment(DeploymentScope.class);
            if (scope == null)
            {
               scope = new JBoss5DeploymentScope(unit.getParent());
               parent.addAttachment(DeploymentScope.class, scope);
            }
         }
         JBoss5DeploymentUnit du = new JBoss5DeploymentUnit(unit);
         du.setDefaultPersistenceProperties(defaultPersistenceProperties);
         Ejb3JBoss5Deployment deployment = new Ejb3JBoss5Deployment(du, kernel, mbeanServer, unit, scope, metaData, persistenceUnitsMetaData,
               this);
         if (scope != null) scope.register(deployment);
         // create() creates initial EJB containers and initializes metadata.
         deployment.create();
         if (deployment.getEjbContainers().size() == 0 && deployment.getPersistenceUnitDeployments().size() == 0)
         {
            log.trace("Found no containers in scanned jar, consider adding it to the ignore list: " + jar.getName() + " url: " + jar.toURL() + " unit: " + unit.getSimpleName());
View Full Code Here

Examples of org.jboss.ejb3.DeploymentScope

                  + "\" - either EJB3 Deployment Descriptor or \"jboss.xml\" is required and neither were found.");
            return;
         }
           
         log.debug("********* EJBRegistrationDepoyer Begin Unit: " + unit.getSimpleName() + " jar: " + jar.getName());
         DeploymentScope scope = null;
         VFSDeploymentUnit parent = unit.getParent();
         if (parent != null && parent.getSimpleName().endsWith(".ear")) // todo should look for metadata instead of ".ear"
         {
            scope = parent.getAttachment(DeploymentScope.class);
            if (scope == null)
            {
               scope = new JBoss5DeploymentScope(unit.getParent());
               parent.addAttachment(DeploymentScope.class, scope);
            }
         }
         JBoss5DeploymentUnit du = new JBoss5DeploymentUnit(unit);
         du.setDefaultPersistenceProperties(defaultPersistenceProperties);
         Ejb3JBoss5Deployment deployment = new Ejb3JBoss5Deployment(du, kernel, mbeanServer, unit, scope, null, null, null);
         if (scope != null) scope.register(deployment);
         // create() creates initial EJB containers and initializes metadata.
         deployment.create();
         if (deployment.getEjbContainers().size() == 0 && deployment.getPersistenceUnitDeployments().size() == 0)
         {
            log.trace("EJBRegistrationDeployer no containers in scanned jar, consider adding it to the ignore list: " + jar.getName() + " url: " + jar.toURL() + " unit: " + unit.getSimpleName());
View Full Code Here

Examples of org.jboss.ejb3.DeploymentScope

      summary.setEjbName(container.getEjbName());
      summary.setService(container instanceof ServiceContainer);
      summary.setStateful(container instanceof StatefulContainer);
      summary.setDeploymentName(container.getDeployment().getName());
      summary.setBeanClassName(container.getBeanClass().getName());
      DeploymentScope scope = container.getDeployment().getEar();
      if (scope != null)
      {
         summary.setDeploymentScopeBaseName(scope.getBaseName());
      }

      // Return
      return summary;
   }
View Full Code Here

Examples of org.jboss.ejb3.DeploymentScope

/*     */
/* 177 */         return;
/*     */       }
/*     */
/* 180 */       log.debug("********* EJBRegistrationDepoyer Begin Unit: " + unit.getSimpleName() + " jar: " + jar.getName());
/* 181 */       DeploymentScope scope = null;
/* 182 */       VFSDeploymentUnit parent = unit.getParent();
/* 183 */       if ((parent != null) && (parent.getSimpleName().endsWith(".ear")))
/*     */       {
/* 185 */         scope = (DeploymentScope)parent.getAttachment(DeploymentScope.class);
/* 186 */         if (scope == null)
/*     */         {
/* 188 */           scope = new JBoss5DeploymentScope(unit.getParent());
/* 189 */           parent.addAttachment(DeploymentScope.class, scope);
/*     */         }
/*     */       }
/* 192 */       JBoss5DeploymentUnit du = new JBoss5DeploymentUnit(unit);
/* 193 */       du.setDefaultPersistenceProperties(this.defaultPersistenceProperties);
/* 194 */       Ejb3JBoss5Deployment deployment = new Ejb3JBoss5Deployment(du, this.kernel, this.mbeanServer, unit, scope, null, null, null);
/* 195 */       if (scope != null) scope.register(deployment);
/*     */
/* 197 */       deployment.create();
/* 198 */       if ((deployment.getEjbContainers().size() == 0) && (deployment.getPersistenceUnitDeployments().size() == 0))
/*     */       {
/* 200 */         log.trace("EJBRegistrationDeployer no containers in scanned jar, consider adding it to the ignore list: " + jar.getName() + " url: " + jar.toURL() + " unit: " + unit.getSimpleName());
View Full Code Here

Examples of org.jboss.ejb3.DeploymentScope

/* 123 */         return;
/*     */       }
/*     */
/* 126 */       this.log.debug("********* " + getClass().getSimpleName() + " Begin Unit: " + unit.getSimpleName() + " jar: " + jar.getName());
/*     */
/* 128 */       DeploymentScope scope = null;
/* 129 */       VFSDeploymentUnit parent = unit.getParent();
/* 130 */       if ((parent != null) && (parent.getSimpleName().endsWith(".ear")))
/*     */       {
/* 132 */         scope = (DeploymentScope)parent.getAttachment(DeploymentScope.class);
/* 133 */         if (scope == null)
/*     */         {
/* 135 */           scope = new JBoss5DeploymentScope(unit.getParent());
/* 136 */           parent.addAttachment(DeploymentScope.class, scope);
/*     */         }
/*     */       }
/* 139 */       JBoss5DeploymentUnit du = new JBoss5DeploymentUnit(unit);
/* 140 */       du.setDefaultPersistenceProperties(this.defaultPersistenceProperties);
/* 141 */       Ejb3JBoss5Deployment deployment = new Ejb3JBoss5Deployment(du, this.kernel, this.mbeanServer, unit, scope, metaData, persistenceUnitsMetaData, this);
/*     */
/* 143 */       if (scope != null) scope.register(deployment);
/*     */
/* 145 */       deployment.create();
/* 146 */       if ((deployment.getEjbContainers().size() == 0) && (deployment.getPersistenceUnitDeployments().size() == 0))
/*     */       {
/* 148 */         this.log.trace("Found no containers in scanned jar, consider adding it to the ignore list: " + jar.getName() + " url: " + jar.toURL() + " unit: " + unit.getSimpleName());
View Full Code Here

Examples of org.jboss.ejb3.DeploymentScope

      summary.setEjbName(container.getEjbName());
      summary.setService(container instanceof ServiceContainer);
      summary.setStateful(container instanceof StatefulContainer);
      summary.setDeploymentName(container.getDeployment().getName());
      summary.setBeanClassName(container.getBeanClass().getName());
      DeploymentScope scope = container.getDeployment().getEar();
      if (scope != null)
      {
         summary.setDeploymentScopeBaseName(scope.getBaseName());
      }

      // Return
      return summary;
   }
View Full Code Here

Examples of org.jboss.metadata.plugins.scope.DeploymentScope

            return metaDataManager;
         }
           
        
         ApplicationScope app = md.getMetaData(ApplicationScope.class);
         DeploymentScope dep = md.getMetaData(DeploymentScope.class);
         if (app != null && dep != null)
         {
            JBossStringBuilder fqn = new JBossStringBuilder("/");
            AspectManager sub = null;
            if (app != null)
            {
               String name="APPLICATION=" + app.value();
               fqn.append(name);
               fqn.append("/");
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
               {
                  sub = createNewDomain(manager, name);
               }
            }
           
            if (dep != null)
            {
               String name="DEPLOYMENT=" + dep.value();
               fqn.append(name);
               fqn.append("/");
               AspectManager parent = sub;
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
View Full Code Here

Examples of org.jboss.metadata.plugins.scope.DeploymentScope

/*    */   {
/* 46 */     AspectManager manager = AspectManager.instance();
/* 47 */     if (md != null)
/*    */     {
/* 49 */       ApplicationScope app = (ApplicationScope)md.getMetaData(ApplicationScope.class);
/* 50 */       DeploymentScope dep = (DeploymentScope)md.getMetaData(DeploymentScope.class);
/* 51 */       if ((app != null) && (dep != null))
/*    */       {
/* 53 */         JBossStringBuilder fqn = new JBossStringBuilder("/");
/* 54 */         AspectManager sub = null;
/* 55 */         if (app != null)
/*    */         {
/* 57 */           String name = "APPLICATION=" + app.value();
/* 58 */           fqn.append(name);
/* 59 */           fqn.append("/");
/* 60 */           sub = manager.findManagerByName(fqn.toString());
/* 61 */           if (sub == null)
/*    */           {
/* 63 */             sub = createNewDomain(manager, name);
/*    */           }
/*    */         }
/*    */
/* 67 */         if (dep != null)
/*    */         {
/* 69 */           String name = "DEPLOYMENT=" + dep.value();
/* 70 */           fqn.append(name);
/* 71 */           fqn.append("/");
/* 72 */           AspectManager parent = sub;
/* 73 */           sub = manager.findManagerByName(fqn.toString());
/* 74 */           if (sub == null)
View Full Code Here

Examples of org.jboss.metadata.plugins.scope.DeploymentScope

   {
      AspectManager manager = AspectManager.instance();
      if (md != null)
      {
         ApplicationScope app = md.getMetaData(ApplicationScope.class);
         DeploymentScope dep = md.getMetaData(DeploymentScope.class);
         if (app != null && dep != null)
         {
            JBossStringBuilder fqn = new JBossStringBuilder("/");
            AspectManager sub = null;
            if (app != null)
            {
               String name="APPLICATION=" + app.value();
               fqn.append(name);
               fqn.append("/");
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
               {
                  sub = createNewDomain(manager, name);
               }
            }
           
            if (dep != null)
            {
               String name="DEPLOYMENT=" + dep.value();
               fqn.append(name);
               fqn.append("/");
               AspectManager parent = sub;
               sub = manager.findManagerByName(fqn.toString());
               if (sub == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.