Examples of loadProfile()


Examples of org.apache.ojb.broker.metadata.MetadataManager.loadProfile()

        if (key != null)
        {
            final MetadataManager mm = MetadataManager.getInstance();
            if (!key.equals(mm.getCurrentProfileKey()))
            {
                mm.loadProfile(key);
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.jboss.deployers.spi.management.ManagementView.loadProfile()

        ProfileKey defaultKey = new ProfileKey(domains[0]);

        try
        {
            currentProfileView.loadProfile(defaultKey);
        }
        catch (Exception e)
        {
            LOG.error("Could not find default Profile in Current Profile View", e);
        }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

   @Override
   protected void setUp() throws Exception
   {
      super.setUp();
      DeploymentManager deployMgr = getDeploymentManager();
      deployMgr.loadProfile(getProfileKey());
   }

   @Override
   protected void tearDown() throws Exception
   {
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

   {
      DeploymentManager deployMgr = getDeploymentManager();
      ProfileKey badKey = new ProfileKey("no-such-profile");
      try
      {
         deployMgr.loadProfile(badKey);
         fail("Did not see NoSuchProfileException");
      }
      catch(NoSuchProfileException e)
      {
         assertTrue("NoSuchProfileException", e.getMessage().contains("no-such-profile"));
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

        managementView.load();
        DeploymentManager deploymentManager = getDeploymentManager();
        // Load and associate the given profile with the DeploymentManager for future operations. This is mandatory
        // in order for us to be able to successfully invoke the various DeploymentManager methods.
        try {
            deploymentManager.loadProfile(DEFAULT_PROFILE_KEY);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

            if (deployExploded) {
                throw new IllegalArgumentException(
                    "Deploying farmed applications in exploded form is not supported by the Profile Service.");
            }
            try {
                deploymentManager.loadProfile(FARM_PROFILE_KEY);
            } catch (Exception e) {
                LOG.info("Failed to switch to farm profile - could not update " + resourceTypeName + " file '"
                    + deploymentFile + "' using [" + packageDetails + "].");
                String errorMessage = ThrowableUtil.getAllMessages(e);
                return failApplicationDeployment(errorMessage, packageDetails);
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

            return failApplicationDeployment(errorMessage, packageDetails);
        } finally {
            // Make sure to switch back to the 'applications' profile if we switched to the 'farm' profile above.
            if (deployFarmed) {
                try {
                    deploymentManager.loadProfile(APPLICATIONS_PROFILE_KEY);
                } catch (Exception e) {
                    LOG.debug("Failed to switch back to applications profile from farm profile", e);
                }
            }
        }
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

                }
                if (deployExploded) {
                    throw new IllegalArgumentException(
                        "Deploying farmed applications in exploded form is not supported by the Profile Service.");
                }
                deploymentManager.loadProfile(FARM_PROFILE_KEY);
            }

            String[] deploymentNames;
            try {
                deploymentNames = DeploymentUtils.deployArchive(deploymentManager, archiveFile, deployExploded);
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

            try {
                deploymentNames = DeploymentUtils.deployArchive(deploymentManager, archiveFile, deployExploded);
            } finally {
                // Make sure to switch back to the 'applications' profile if we switched to the 'farm' profile above.
                if (deployFarmed) {
                    deploymentManager.loadProfile(APPLICATIONS_PROFILE_KEY);
                }
            }

            if (deploymentNames == null || deploymentNames.length != 1) {
                throw new RuntimeException("deploy operation returned invalid result: " + deploymentNames);
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.loadProfile()

   @Override
   protected void setUp() throws Exception
   {
      super.setUp();
      DeploymentManager deployMgr = getDeploymentManager();
      deployMgr.loadProfile(getProfileKey());
   }

   @Override
   protected void tearDown() throws Exception
   {
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.