You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Karim Boussema <ka...@gmail.com> on 2017/05/30 12:52:08 UTC
Create a context file to deploy without a war
Hello,
I'd like to ask your help to know if it is possible to create a context
file for a web application and deploying it without having a complete
folder in webapps or a war file.
I have as input a configuration file, which indicates the paths of the
different elements of a web application (jars, web.xml, images ...). All
these elements are in disjointed folders.
In order to gain performance, I wondered if it is possible to constitute in
a context file, the structure of the web app, without creating its folder,
nor to copy the files. I mean by that, doing a sort of a link by reference
of the elements.
I searched in literature, but unfortunately I did not find much.
Would anyone know if it's doable please?
Thank you for your help.
Re: Create a context file to deploy without a war
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi
did you check tomcat WebResource? you probably still need a folder (doesn't
have to be in webapps, can be elsewhere using <Context>) but you can
aggregate virtually multiple resources from multiple folders with that.
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-05-30 14:52 GMT+02:00 Karim Boussema <ka...@gmail.com>:
> Hello,
>
> I'd like to ask your help to know if it is possible to create a context
> file for a web application and deploying it without having a complete
> folder in webapps or a war file.
>
> I have as input a configuration file, which indicates the paths of the
> different elements of a web application (jars, web.xml, images ...). All
> these elements are in disjointed folders.
>
> In order to gain performance, I wondered if it is possible to constitute in
> a context file, the structure of the web app, without creating its folder,
> nor to copy the files. I mean by that, doing a sort of a link by reference
> of the elements.
>
> I searched in literature, but unfortunately I did not find much.
>
> Would anyone know if it's doable please?
>
> Thank you for your help.
>