Re: [osgi-dev] OSGi dynamics

2011-02-21 Thread Felix Meschberger
Hi, Am Donnerstag, den 17.02.2011, 11:59 + schrieb Neil Bartlett: Depending on the DS implementation you may be able to introspect the state of the components, including the ones that are unsatisfied, and report this as a kind of startup progress. Felix DS has a handy introspection API

Re: [osgi-dev] OSGi dynamics

2011-02-19 Thread chris . gray
[Peter Kriens] Of course you're right that there is an issue with when you consider the application to have started, whether successfully or unsuccessfully. DS does not consider a component with unsatisfied references to be any kind of error, because the services that would make it a satisfied

Re: [osgi-dev] OSGi dynamics

2011-02-19 Thread Neil Bartlett
On Thu, Feb 17, 2011 at 5:02 PM, Eugen Reiswich ereisw...@googlemail.com wrote: make it a satisfied component may be coming along very soon... so, when should an error be thrown? That's exactly the question I was not able to answer! As Chris points out... this is not something that DS can

Re: [osgi-dev] OSGi dynamics

2011-02-19 Thread Marcel Offermans
On 19 Feb 2011, at 11:25 , Neil Bartlett wrote: You could simply write a bundle that starts all bundles and waits for them to reach ACTIVE state (a BundleListener or BundleTracker will help you with this part). Once all the bundles you know about are active, your system should be in its

Re: [osgi-dev] OSGi dynamics

2011-02-17 Thread Eugen Reiswich
Hi folks, The start up of an application is exactly where I get in trouble with OSGi. Although using DS, my application sometimes starts with say only 8 of 10 available services due to misconfiguration. In this case I would rather throw a RuntimeException, NPE ore something comparable to

Re: [osgi-dev] OSGi dynamics

2011-02-17 Thread Guillaume Nodet
A simple way would be to create a service with dependencies on all your 10 services. When this service will be registered, you'll know your application is ready. But I agree this is a real problem and there is a need for something here. On Thu, Feb 17, 2011 at 09:50, Eugen Reiswich

Re: [osgi-dev] OSGi dynamics

2011-02-17 Thread Neil Bartlett
Can you clarify a bit more accurately what is going wrong? Do some of the components not start at all, or are some not being bound into your application component? If the former then make sure you enable the OSGi LogService. DS will send errors to the log service if any service fails to start,

Re: [osgi-dev] OSGi dynamics

2011-02-17 Thread Eugen Reiswich
Of course you're right that there is an issue with when you consider the application to have started, whether successfully or unsuccessfully. DS does not consider a component with unsatisfied references to be any kind of error, because the services that would make it a satisfied component may

Re: [osgi-dev] OSGi dynamics

2011-02-16 Thread Neil Bartlett
Hi Eugen, This is a very interesting question, thanks for asking it! I appreciate that dynamics are not a big feature of enterprise applications, but there is one time when ALL applications are dynamic, and that is during startup (also, less importantly, during shutdown). This is what I find