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

thomas.diesler@jboss.com do-not-reply at jboss.com
Thu Feb 21 05:50:13 EST 2008


Folks,

this is related to http://jira.jboss.org/jira/browse/JBWS-1967

I now generate the JBossWebMetaData object in memory and want to deploy it through the main deployer. Previously I used to do 


  |    VirtualFile file = VFS.getRoot(warURL);
  |    Deployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
  |             MutableAttachments attach = (MutableAttachments)deployment.getPredeterminedManagedObjects();
  |          attach.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
  | 
  |          mainDeployer.deploy(deployment);
  | 

Please show me how I create a deployment that is not based on a file.

I looked at http://labs.jboss.com/file-access/default/members/jbossmc/freezone/docs/2.0.x/userGuide/pt04.html
but that does not give me much information.



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

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



More information about the jboss-dev-forums mailing list