Hey guys!

So I'm beginning to covert my existing enterprise app over to an OSGi based
framework and it looks like Karaf is going to suit my needs best. I was
hoping the list could help me with some basic questions to gain clarity
around a couple of pieces I'm having some trouble understanding:

Background: I'm rocking your standard WAR-based application. It has some
servlets, some command-control classes, a GWT front end... nothing exotic...
in fact, it runs in SUPER light jetty container, which I install manually
then upload the WAR.

1. What's the best way to share JARs between modules? Currently, they're all
rammed willy-nilly into the /lib directory. I know that I can get OSGi-fied
versions of all the libraries, but where do these things go?

1a. For the GWT stuff, (or any other library that is specific to ONE module
only) can I just create a /lib directory in that module and proceed
normally?

2. Where do I put all these OSGI-fied JARs? Certainly, it doesn't make sense
to create a Plugin Project for each of the JARs... Do I "Add" them to my
Karaf Installation (I'm using EIT) somehow? Is there a "TOP" level project I
create in EIT or something like that?

3. Packaging is a bit of a mystery to me. How do I get this badboy up and
running on my server. I see the documentation about the KAR file, which
sounds like what I need, but how do I then deploy that to my server? Do I
"install" Karaf somehow? How do I keep track of everything? 

4. Assumning I install Karaf on my server (much like Jetty today), is there
a standardized way to "start" it up, thinking along the lines of an init.d
script or something like that.

5. I'm planning on running on Amazon. My startegy is to have a base AMI
that, upon startup, goes out to a (custom?) repository and downloads the
latest versions of each module. Is this 
possible to implement programatically? Could I write a servlet to kick off
this process? I think I read that there are modules in Karaf to do this
already?

6. Given my implementation plan in (5), how would I upgrade Karaf itself?
Would I have to create a new AMI, or can it go find and install it's own
modules. I'm thinking for something like the recent release of 2.2.8, coming
from 2.2.7.

Thanks for taking the time to read my questions. I really appreciate any
help I can get getting started!

Thanks,

E

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Getting-Started-with-OSGi-Karaf-tp4025096.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to