Trying to use Peaberry 1.2 in Karaf 2.2.4. It doesn't work when installing the Guice and AOP bundles into the Karaf environment as regular bundles. The Peaberry activator does run the configure() method of the modules, so the activator is working -- but the service consumer gets a org.ops4j.peaberry.ServiceUnavailableException when trying to access the service.
When installing the Guice and AOP bundles into the boot classloader as described here http://code.google.com/p/google-guice/wiki/OSGi, Peaberry does work properly, so this seems to be a classloader issue of some sort.When installing as regular bundles, I am not seeing any Exceptions in the log, including the ReflectUtils exception as described on the referenced page.
--
You received this message because you are subscribed to the Google Groups "Guice and OSGi" group.
To view this discussion on the web visit https://groups.google.com/d/msg/guice-osgi/-/nEKmVrbbGC8J.
To post to this group, send email to guice...@googlegroups.com.
To unsubscribe from this group, send email to guice-osgi+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/guice-osgi?hl=en.
On 22 October 2011 18:07, Raman Gupta <rocke...@gmail.com> wrote:Trying to use Peaberry 1.2 in Karaf 2.2.4. It doesn't work when installing the Guice and AOP bundles into the Karaf environment as regular bundles. The Peaberry activator does run the configure() method of the modules, so the activator is working -- but the service consumer gets a org.ops4j.peaberry.ServiceUnavailableException when trying to access the service.
Can you create a testcase that recreates this and attach it to a new issue? Also which version of Guice are you using?
The peaberry activation extension does not start your bundle until all
declared configurations are available. Therefore the bundle services
won't be exported and the bundle start()/stop() methods won't be
called until that condition is met. I am not sure how easy it will be
do detect if the configurable is not used anywhere in the module. I am
not sure if it is a good idea to add such validation unless it can
catch 100% of the cases. Otherwise we will give the users false sense
of security.
I am thinking about adding a timeout option after which the activation
fails with a BundleException. I can also add some java.util.logging
logs that tell how the activation proceeds.
Cheers,
Todor
> --
> You received this message because you are subscribed to the Google Groups
> "Guice and OSGi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/guice-osgi/-/NydLP6lVr5oJ.
I am thinking about adding a timeout option after which the activation
fails with a BundleException. I can also add some java.util.logging
logs that tell how the activation proceeds.