[
https://jira.jboss.org/jira/browse/JBAS-6330?page=com.atlassian.jira.plug...
]
Max Rydahl Andersen commented on JBAS-6330:
-------------------------------------------
Here is the code we use in tools:
protected void suspendDeployment(MBeanServerConnection connection) throws Exception {
ObjectName name = new
ObjectName("jboss.deployment:flavor=URL,type=DeploymentScanner");
connection.invoke(name, "stop", new Object[] { }, new String[] {});
}
protected void resumeDeployment(MBeanServerConnection connection) throws Exception {
ObjectName name = new
ObjectName("jboss.deployment:flavor=URL,type=DeploymentScanner");
connection.invoke(name, "start", new Object[] { }, new String[] {});
}
For adding a custom deploy location that has hotdeploy enabled.
ObjectName name = new
ObjectName("jboss.deployment:flavor=URL,type=DeploymentScanner");
connection.invoke(name, "addURL", new Object[] { asURL }, new String[]
{String.class.getName()});
Note: we don't check if an url is already there since addURL just ignores us if it is
there thus avoiding the need to call multiple times.
We Don't remove a location at this point in time since when the server starts again it
have forgotten about the previous one.
But having the removeURL operation would be good for completness.
Hotdeployment management interface
----------------------------------
Key: JBAS-6330
URL:
https://jira.jboss.org/jira/browse/JBAS-6330
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Management services, ProfileService
Affects Versions: JBossAS-5.0.0.GA
Reporter: Scott M Stark
Assignee: Emanuel Muckenhuber
Fix For: JBossAS-5.1.0.CR1
Create a testcase illustrating:
1) add a folder to the scanner list
2) remove a folder from the scanner list
3) suspend the scanner
4) resume the scanner
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira