[Design of POJO Server] - Re: EAR CL isolation is broken
by alesj
This is the fix:
| public void deploy(DeploymentUnit unit, JBossAppMetaData metaData) throws DeploymentException
| {
| ClassLoadingMetaData classLoadingMetaData = unit.getAttachment(ClassLoadingMetaData.class);
| if (classLoadingMetaData != null)
| return;
|
| LoaderRepositoryMetaData lrmd = metaData.getLoaderRepository();
| if (lrmd != null && LoaderRepositoryMetaDataHelper.create(unit, lrmd) != null)
| return;
|
| // For isolated automatically create the classloader in a new domain
| if (isolated)
| {
| String domain = EARDeployment.getJMXName(metaData, unit) + ",extension=LoaderRepository";
| classLoadingMetaData = new ClassLoadingMetaData();
| classLoadingMetaData.setName(unit.getName());
| classLoadingMetaData.setDomain(domain);
| classLoadingMetaData.setExportAll(ExportAll.NON_EMPTY);
| classLoadingMetaData.setImportAll(true);
| classLoadingMetaData.setVersion(Version.DEFAULT_VERSION);
| classLoadingMetaData.setJ2seClassLoadingCompliance(false);
| unit.addAttachment(ClassLoadingMetaData.class, classLoadingMetaData);
| }
| }
|
btw, Adrian, what happened to Hack(Something)Deployer,
that was responsible to transform the old -service.xml cl metadata to new CLMD?
Do we really need to map the old descriptors to CLMD?
I guess we can leave this via programmatic approach, as it is now.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218237#4218237
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218237
17 years
[Design of POJO Server] - Re: JSR-299 servlet injection
by alesj
"pete.muir(a)jboss.org" wrote : I still think a context callback of some sort is best here.
|
I had diff callback in mind.
This is something we do similar to OSGi's services tracking/callback.
See MainDeployer and add/removeDeployer use case in deployers.xml.
"pete.muir(a)jboss.org" wrote :
| The ServletContext is propagated to the TomcatInjectionContainer, can we use the vdf connector to access the MC and fire some event?
I guess we could have some servlet listener
which would via vdf connector code get access to WB's Bootstrap
and invoke it's WBManager::injectServlet.
btw, this looks deprecated in ServletContext.
| /**
| * @deprecated
| */
| javax.servlet.Servlet getServlet(java.lang.String s) throws javax.servlet.ServletException;
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218290#4218290
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218290
17 years