> -----Original Message-----
> From: Marcel Offermans [mailto:[email protected]]
> Sent: Thursday, March 26, 2009 8:09 AM
> To: [email protected]
> Subject: Re: Using the Bundle Repository
> 
> Hello Joel,
> 
> On Mar 26, 2009, at 14:58 , Joel Schuster wrote:
> 
> > I'm trying to understand what the real advantage of using the Bundle
> > Repository for installing bundles. I understand the advantage of it
> > being able to discover dependencies and load those as well.
> 
> That is correct.

As the Felix BundleRepository bundle only seems to work against the Felix 
repository this isn't yet very usefull. See: 
https://issues.apache.org/jira/browse/FELIX-973

> 
> > However, if I deploy using obr it updates the cache, but doesn't
> > update the bundle directory. I'd like to be able to get a felix
> > install working and then create an installer to distribute to other
> > machines. If I use obr I'd have to include the cache directory which
> > only has the jars as 'bundle.jar', not the real name of the jar for
> > reference, and nothing else in the cache directory that specifies
> > which one is which. Yes, I can look at the running ps command, but
> > what if it's not running yet?
> 
> The way the OSGi specification defines it, an OSGi framework persists
> its bundle in the bundle cache so they're still available even after a
> restart.
> 
> There is no such concept as a "bundle" directory in OSGi though, that
> is just a feature of the launcher we use to bootstrap the framework.
> Because of this, there is no support in OBR to store a copy of
> anything it installs in that directory. It would not be too hard to
> modify an OBR client to do that though.
> 
> > It seems what I really need is to download the bundles I need and
> > use the FileInstall bundle or hardcode the config (which I'd rather
> > not).
> 
> It's hard for me to judge what you really need. Can you explain a bit
> more about what you are trying to achieve? Are you trying to make a
> "static distribution" of the framework with a set of bundles that form
> your application?

Yes, that is exactly what I wish to do. I guess I'm very used to the 'deploy' 
directory of JBoss and other J2EE containers. I'm really trying to get away 
from them as OSGi is simply so much more elegant, not to mention not the 
overkill that dragging along a full J2EE container would be for a simple server 
app.

> 
> > Also, is there an OSGi Log Service already part of Felix? Or better,
> > which Felix bundle provides the Log Service?
> 
> I don't think we have a Log Service. There are a lot of them out there
> though.

Any recommendations for log4j/apache-commons-logging abilities and where to get 
it? IOW should I use the equinox bundle or something else?

> 
> Greetings, Marcel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to