-
1. Re: MainDeployer listDeployed returns empty list
emuckenhuber Feb 4, 2010 6:10 AM (in response to swiderski.maciej)The jboss.system:service=MainDeployer is deprecated in AS5++. It only returns URLs which were explicitly deployed over it.
In the jmx-console you might want to use the DeploymentScanner MBean for now.
-
2. Re: MainDeployer listDeployed returns empty list
swiderski.maciej Feb 4, 2010 7:16 AM (in response to emuckenhuber)Thanks for information.
DeploymentScanner returns only urls of the deployed resources. How to get access to MBean for these resources?
Thanks
Maciej
-
3. Re: MainDeployer listDeployed returns empty list
boblepepeur Sep 8, 2010 11:11 AM (in response to swiderski.maciej)synchronized static public void redeployProject(String _project){System.out.println("redépoiement manuel de "+_project);try{InitialContext ctx = new InitialContext(); // From jndi.propertiesProfileService ps = (ProfileService) ctx.lookup("ProfileService");org.jboss.deployers.spi.management.deploy.DeploymentManager deploymentManager = ps.getDeploymentManager();DeploymentProgress redeploy = deploymentManager.redeploy(_project);redeploy.run();}catch (Exception e){e.printStackTrace();System.out.println("Impossible de redéployer l'application "+_project+".");}}if that can help some one :
synchronized static public void redeployProject(String _project)
{
System.out.println("redépoiement manuel de "+_project);
try
{
InitialContext ctx = new InitialContext(); // From jndi.properties
ProfileService ps = (ProfileService) ctx.lookup("ProfileService");
org.jboss.deployers.spi.management.deploy.DeploymentManager deploymentManager = ps.getDeploymentManager();
DeploymentProgress redeploy = deploymentManager.redeploy(_project);
redeploy.run();
}
catch (Exception e)
{
e.printStackTrace();
System.out.println("Impossible de redéployer l'application "+_project+".");
}
}
_projet = "yourproject.war"
that's work with jboss6 and i think 5 too