[jboss-dev-forums] [Management Development] - Re: remote application deployment?
ips
do-not-reply at jboss.com
Thu Sep 10 13:31:03 EDT 2009
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
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254532#4254532
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254532
More information about the jboss-dev-forums
mailing list