[jboss-dev-forums] [Design of JBoss Deployment Framework] - Re: SAR Deployment Deployers Ordering

richard.opalka@jboss.com do-not-reply at jboss.com
Tue Nov 4 09:49:39 EST 2008


"adrian at jboss.org" wrote : 
  | I don't see a ctx loader on JBossWebMetaData?
  | That doesn't make any sense.
Here's our code:

  |       // JSE endpoints
  |       else if (dep.getAttachment(JBossWebMetaData.class) != null)
  |       {
  |          JBossWebMetaData webMetaData = dep.getAttachment(JBossWebMetaData.class);
  |          ClassLoader classLoader = webMetaData.getContextLoader();
  |          if (classLoader == null)
  |          {
  |             // [JBWS-2246] hack for .sar deployments incorporating web services deployments
  |             classLoader = dep.getInitialClassLoader();  
  |          }
  |          dep.setRuntimeClassLoader(classLoader);
  |       }

"adrian at jboss.org" wrote : That's obtainable just by doing DeploymentUnit.getClassLoader()
Yes, this is exactly what my current hack is doing.


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

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



More information about the jboss-dev-forums mailing list