Hi,

I'd start with a simple
bundle:install -s
webbundle:groupId/artifactID/version/war?Web-ContextPath=artifactID&Bundle-SymbolicName=artifactID

if that's successful and everything is working as desired, fine.

After that, create a WAB from it, by using the maven-bundle-plugin.
again install it, test if it works.

after that. remove dependencies from the WEB-INF/lib folder of your war and
import those dependencies.
That 'll give you a much smaller war-bundle, and usually you re-use
existing bundles, leaving you with a smaller footprint already.

Last Optimization is to modularize your web-application, so you end up with
a bunch of smaller wars and maybe plain bundles that take care of the
business logic.

regards, Achim




2014-07-16 23:43 GMT+02:00 parker <[email protected]>:

> Hello,
>
> To use a .WAR project in OSGi I need : Pax web or IAS WAR to WAB.
> That transform a .WAR project in one OSGi bundle.
>
> I have a big WAR project . How to  to use this big WAR in Karaf ?
> I think the best way is to shrink the big war in many small WAR projects
> and
> to deploy each small projects in Apacke Karaf.
>
> What do you think ?
>
> How OSGi using apache Karaf can help me with a big WAR project ?
>
> Thanks,
>
> P.
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Transform-a-big-WAR-project-in-OSGI-tp4034260.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/>

Software Architect / Project Manager / Scrum Master

Reply via email to