Community

Implementing a non-flat deployment for Weld Integration

reply from Ales Justin in JBoss Microcontainer Development POJO Server - View the full discussion

Now, the main question that I have is how to create the Archives for the jars in the lib dir? And how to have those jars scanned for XML files?

We could do it per invocation.

e.g. (pseudo code)

 

Class<?> beanClass = ...; // parameter from Deployment::loadBeanDeploymentArchive
BDA bda = getBDA(beanClass);
if (bda == null)
{
   URL jarURL = getJarURL(beanClass);
   URL beansXML = getBeansXML(jarURL);
   if (beansXML == null)
      return null;
 
   // TODO ... some sort of simple embedded Weld scanning mechanism
}

 

Since I guess we don't to do much for those jars; e.g. they should not have JEE components?

Reply to this message by going to Community

Start a new discussion in JBoss Microcontainer Development POJO Server at Community