Hi,

you can't if you embed those static files in a war file.
If you run your application in a OSGi Container you have a lot of other
possibilities to deploy your application.
One is to take advantage of the Whiteboard extension mechanism and just
deploy your Servlets and mappings as services (see the various Pax-Web
samples on how to do that).

Another possibility is server static content via Jetty itself.

regards, Achim


2016-04-15 15:31 GMT+02:00 vegegoku <[email protected]>:

> Hi All,
>
> currently i am working on a project that is intended to build a plug-able
> UI
> elements using gwt, so we can developer separate projects independently
> like
> :
>
> Shipping info project: a gwt module that load and display shipping info.
> Customer info project : another gwt module that loads the customer info.
>
> now these 2 modules integrate with each other through our plugins and
> extension points mechanism, but since they are built with GWT both modules
> should be inherited by the main module and the main module will be
> recompiled to deliver the final js file that contains both modules.
>
> we deploy both modules and the main module(main module is a war bundle) to
> karaf, -war feature is install -
>
> now every thing works fine so far and application runs as a charm.
>
> the issue that we want to allow every one to develop more plugins and have
> them on a market place that is available to the end user, so the end user
> can pick a plugin and install it, but as i said before we will have to
> recompile the main module after we make it inherit the new installed
> plugin,
> this will produce a new gwt js files set.
>
> now here is the problem, we want to replace the old js files in our old war
> with the new js file as they are the only thing that change every time, so
> we generate a new war in the karaf deploy folder with the same old war
> name,
> but when ever we do that the war bundle starts redeploying and the
> application goes off for few seconds, and that is a problem for us, we
> searched a lot to find a way to replace the js files inside the war with
> out
> the need to redeploy the war but with no luck.
>
> how can we replace these js files without letting the application go off
> for
> redeploying?
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Changing-a-static-content-in-a-war-causing-redeploy-tp4046244.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Reply via email to