[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Re: HOWTO deploy webapp dynamically

alesj do-not-reply at jboss.com
Tue Feb 26 05:49:35 EST 2008


"thomas.diesler at jboss.com" wrote : 
  | Yes, please show me the code that does this.
A bunch of our tests do this. ;-)

OK, but here it goes:

  |       DeployerClient main = getMainDeployer();
  |       Deployment deployment = createSimpleDeployment("some_name");
  |       MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
  |       mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd);
  |       main.deploy(deployment);
  | 

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

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



More information about the jboss-dev-forums mailing list