This content has been marked as final.
Show 1 reply
-
1. Re: remote application deployment?
ips Sep 10, 2009 1:31 PM (in response to drakee)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/java/test/EjbClient.java