[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: war file deployment in java code

jaikiran do-not-reply at jboss.com
Tue Nov 20 10:14:40 EST 2007


Yes, you can. JBoss exposes the deployers as MBeans. You will have to first get reference to the MBeanServer and then get hold of the jboss.system:service=MainDeployer MBean. This MBean has the deploy method to which you can pass the URL of the file to be deployed. Have a look at 

http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIGetAReferenceToTheMBeanServer

You may even want to look at a few examples of invoking MBeans.





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106418#4106418

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106418



More information about the jboss-user mailing list