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

thomas.diesler@jboss.com do-not-reply at jboss.com
Tue Feb 26 04:03:35 EST 2008


Using the JAX-WS Endpoint API it is possible to setup a WS endpoint for a given endpoint bean and web context.

Prior to the changes above we used to generate webapp descriptors and deployed them through the client deployer API.

Please show me how to do this in memory. I generate the JBossWebMetaData ,but I don't have a deployment unit to attach it to.


  |          DeploymentUnit unit = dep.getAttachment(DeploymentUnit.class);
  |          if (unit != null)
  |          {
  |             unit.addAttachment(JBossWebMetaData.class, jbwmd);
  |             unit.addAttachment(WebMetaDataModifier.PROPERTY_GENERATED_WEBAPP, Boolean.TRUE);
  |          }
  |          else
  |          {
  |             // TODO: endpoint API cannot use an existing deployment unit
  |          }
  | 

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

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



More information about the jboss-dev-forums mailing list