Examples of JBossWebMetaData


Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

      processContextParameters();
   }

   protected void defaultWebConfig()
   {
      JBossWebMetaData sharedJBossWebMetaData = (JBossWebMetaData)
         deploymentUnitLocal.get().getAttachment(SharedJBossWebMetaDataDeployer.SHARED_JBOSSWEB_ATTACHMENT_NAME);
      if (sharedJBossWebMetaData != null)
      {
         processWebMetaData(sharedJBossWebMetaData);
      }
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

         JBossMetaData appMD = targetUnit.getAttachment(JBossMetaData.class);
         return appMD.getAssemblyDescriptor().getMessageDestination(destinationName);
      }
      if (targetUnit.getAttachment(JBossWebMetaData.class) != null)
      {
         JBossWebMetaData webMD = targetUnit.getAttachment(JBossWebMetaData.class);
         return webMD.getMessageDestination(destinationName);
      }
      else
      {
         log.warn("DeploymentUnit " + targetUnit + " is not an EJB .jar " + "file!");
         return null;
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

    * Process the context parameters. Let a user application
    * override the sharedMetaData values.
    */
   protected void processContextParameters()
   {
      JBossWebMetaData local = metaDataLocal.get();
      JBossWebMetaData shared = (JBossWebMetaData)
         deploymentUnitLocal.get().getAttachment(SharedJBossWebMetaDataDeployer.SHARED_JBOSSWEB_ATTACHMENT_NAME);
     
      if (shared == null)
         return;

      Map<String, String> overrideParams = new HashMap<String, String>();

      List<ParamValueMetaData> params = local.getContextParams();
      if (params != null)
      {
         for (ParamValueMetaData param : params)
         {
            overrideParams.put(param.getParamName(), param.getParamValue());
         }
      }
      params = shared.getContextParams();
      if (params != null)
      {
         for (ParamValueMetaData param : params)
         {
            if (overrideParams.get(param.getParamName()) == null)
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

         if (mdMD != null)
            return mdMD;
      }
      if (unit.getAttachment(JBossWebMetaData.class) != null)
      {
         JBossWebMetaData webMD = unit.getAttachment(JBossWebMetaData.class);
         return webMD.getMessageDestination(link);
      }

      // Search each subcontext
      Iterator<DeploymentUnit> it = unit.getChildren().iterator();
      while (it.hasNext())
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

   }

   protected Manager initManager(ManagerMetaData managerMetaData) throws Exception,
         ClusteringNotSupportedException, NoClassDefFoundError
   {
      JBossWebMetaData webMetaData = metaDataLocal.get();
     
      String defaultManagerClass = webMetaData.getDistributable() == null
            ? StandardManager.class.getName() : JBossCacheManager.class.getName();     
      Manager manager = (Manager)TomcatService.getInstance(managerMetaData, defaultManagerClass);
     
      if (manager instanceof AbstractJBossManager)
      {
         // TODO next 10+ lines just to create a 'name' that the AbstractJBossManager
         // impls don't even use
         Host host = null;
         Container container = context;
         while (host == null && container != null)
         {
            container = container.getParent();
            if (container instanceof Host)
            {
               host = (Host) container;
            }
         }
         String hostName = host.getName();
         String name = "//" + ((hostName == null) ? "localhost" : hostName) + webMetaData.getContextRoot();
        
         try
         {
            ((AbstractJBossManager) manager).init(name, webMetaData);
         }
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

      return manager;
   }
  
   protected void completeConfig() {

      JBossWebMetaData metaData = metaDataLocal.get();
     
      // Process Servlet API related annotations that were dependent on Servlet declarations
      if (ok && (metaData != null))
      {
         // Resolve type specific annotations to their corresponding Servlet components
         metaData.resolveAnnotations();
         // Same process for Catalina
         resolveAnnotations(metaData.getAnnotations());
      }

      if (ok)
      {
         resolveServletSecurity();
      }

      if (ok)
      {
         validateSecurityRoles();
      }
     
      if (ok && (metaData != null))
      {
         // Resolve run as
         metaData.resolveRunAs();
      }

      // Configure an authenticator if we need one
      if (ok)
      {
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

     
      cacheContainers[0] = SessionTestUtil.createCacheContainer(true, null, false, false);
      cacheContainers[0].start();
      managers[0] = SessionTestUtil.createManager(warName, 5, cacheContainers[0], null);
      
      JBossWebMetaData webMetaData = SessionTestUtil.createWebMetaData(2);
      managers[0].init(warName, webMetaData);
     
      managers[0].start();
     
      assertFalse("Passivation is disabled", managers[0].isPassivationEnabled());
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

      String passDir = getPassivationDir(managerIndex, 1);
      cacheContainers[0] = SessionTestUtil.createCacheContainer(true, passDir, false, false);
      cacheContainers[0].start();
      managers[0] = SessionTestUtil.createManager(warName, 5, cacheContainers[0], null);
      
      JBossWebMetaData webMetaData = SessionTestUtil.createWebMetaData(1, true, 1, -1);
      managers[0].init(warName, webMetaData);
     
      managers[0].start();
     
      assertTrue("Passivation is enabled", managers[0].isPassivationEnabled());
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

      String passDir = getPassivationDir(managerIndex, 1);
      cacheContainers[0] = SessionTestUtil.createCacheContainer(true, passDir, false, false);
      cacheContainers[0].start();
      managers[0] = SessionTestUtil.createManager(warName, 5, cacheContainers[0], null);
     
      JBossWebMetaData webMetaData = SessionTestUtil.createWebMetaData(1, true, 3, 1);
      managers[0].init(warName, webMetaData);
     
      managers[0].start();
     
      assertTrue("Passivation is enabled", managers[0].isPassivationEnabled());
View Full Code Here

Examples of org.jboss.metadata.web.jboss.JBossWebMetaData

   public void testReplicatedMaxSessions() throws Exception
   {
      log.info("Enter testReplicatedMaxSessions");
     
      String warName = "test" + ++managerIndex;
      JBossWebMetaData webMetaData = SessionTestUtil.createWebMetaData(1);
      for (int i = 0; i < cacheContainers.length; ++i)
      {
         cacheContainers[i] = SessionTestUtil.createCacheContainer(false, null, false, false);
         cacheContainers[i].start();
        
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.