Create a WAB with bndtools (look at bnd -wab and -wablib). Then setup a run
environment with a web container. bndtools will automatically create and deploy
your WAB (which is actually also a WAR) after every file save you do. I guess
it should be possible to use the web-container, I guess PAX Web would be the
one you want to look at.
I have not tried this yet so if you get this to work I would appreciate how you
setup so we can create a small tutorial out of this because I think others are
very interested in this.
Kind regards,
Peter Kriens
On 6 apr 2011, at 17:01, Daniele Dellafiore wrote:
> Hi. I am trying to achive this goal.
> What do I hate the most of webapp development in java? That to put a webapp
> online after you've changed a single line of code, you have to deploy a
> whole war. Now, I can manage to reduce the war by hand to be around 1 MB but
> yet is too big, and also complicated: I have to put by hand all the jars in
> a JEE/lib folder and keep them alignet, by hand.
> Then what if I do not change the webapp bundle but just a dep? I have to
> repackage. For me this is hell. Moreover, the JEE containers itself is hell.
>
>
> Enter OSGI. What I want to achieve is deploy a webapp as a JAR, not as a
> WAR. Or a war, but without the dependencies.
>
> The war belongs to the idea of being a super package with all the dep in it.
> I want to deploy a jar with a web.xml, but it seems that no one ever did
> this and I have no idea how to do this. W
> With this solution, my modularized app can be deployed in seconds cause
> every jar is just a few Kb of data, eitehr the webapp jar than the jar it
> depends upon.
>
> Any tip for this? All the pax-web stuff are really targetted to deploy a
> war.
> I think that even a custom solution with some custom code to start a servlet
> container and it's web.xml from an osgi Activator would be better than the
> standard jee hell.
>
>
> --
> Daniele Dellafiore
> http://danieledellafiore.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]