On Sep 22, 2014, at 11:53 AM, Romain Manni-Bucau <[email protected]> wrote:

> Hi guys,
> 
> started to hack around tomee embedded and added in TOMEE-1355 the
> ability to run the classpath as a flat webapp (test
> http://svn.apache.org/repos/asf/tomee/tomee/trunk/tomee/tomee-embedded/src/test/java/org/apache/tomee/embedded/ClasspathAsWebappTest.java
> , surely better than any words ;) - it uses deployPathsAsWebapp and
> not deployClasspathAsWebApp cause we are in an excluded module but
> user should rely on deployClasspathAsWebApp()).
> 
> What do you think?

Definitely worth exploring and fantastic to see more work in the embeddable 
container.

For Java EE 7 I proposed we consider creating an "inverted" war format that was 
usable in a plain classloader.  Giving the content top-level status in the 
archive and classes burried in a directory makes them unusable in a plain 
classloader.

So instead of:

  archive/WEB-INF/classes/<classes>
  archive/<content>

Some form of inverted structure that puts the classes back on top:

  archive/<classes>
  archive/WEB-INF/content/<content>

Haven't yet thought of a directory name I like.  Something about 
'WEB-INF/content/' feels off, but you get the idea.

Just like with collapsed ear, I suspect if we take a formal approach, 
documented it and support it consistently, it'll catch on and reach the 
standard.

-David

Reply via email to