This content has been marked as final.
Show 1 reply
-
1. Re: war file deployment in java code
jaikiran Nov 20, 2007 10:14 AM (in response to smadhavan1810)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.