You could do this via JMX. You'd connect remotely via JNP, lookup the remote
MBeanServer from JNDI, then invoke operations on the MainDeployer MBean (look for the
jboss.system:service=MainDeployer MBean in your jmx-console). For more info on accessing
JBoss JMX remotely, see:
http://www.jboss.org/community/wiki/HowDoIGetRemoteAccessToMyMBean.
If you're talking about AS 5.x, the official API for deployment is the
ProfileService's DeploymentManager, though the above JMX approach should still work as
well. For an example of connecting to the ProfileService remotely and deploying a WAR via
the DeploymentManager, take a look at:
http://anonsvn.jboss.org/repos/jopr/trunk/etc/jbas5-ejb-client/src/main/j...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254532#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...