[jboss-dev-forums] [Design of POJO Server] - Re: Security Deployer assuming VFSDeploymentUnit
thomas.diesler@jboss.com
do-not-reply at jboss.com
Wed Jan 28 11:38:54 EST 2009
The background is that I am trying to implement an OSGi HttpService that dynamically deploys an JbossWebMetaData attached to an AbstractDeploymentUnit
| AbstractDeployment deployment = new AbstractDeployment(alias);
| //factory.addContext(deployment, "");
|
| ClassLoader classLoader = servlet.getClass().getClassLoader();
|
| MutableAttachments mutableAttachments = (MutableAttachments)deployment.getPredeterminedManagedObjects();
| mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory(classLoader));
| mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd);
| mainDeployer.deploy(deployment);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205317#4205317
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205317
More information about the jboss-dev-forums
mailing list