Re: Karaf with Dynatrace agent is causing side-effects

2020-09-02 Thread Jean-Baptiste Onofre
Hi Martin javax.management.MBeanServer service is exposed by Karaf Management bundle. I just checked in 4.2.9, and I can see the service available: objectClass = [javax.management.MBeanServer] service.bundleid = 30 service.id = 83 service.scope = singleton Does it mean that the service is not

Apache Karaf track schedule available on ApacheCon.com

2020-09-02 Thread Jean-Baptiste Onofre
Hi everyone, I’m pleased to announce the Apache Karaf track schedule available on ApacheCon: https://www.apachecon.com/acah2020/tracks/karaf.html We tried to have a well balanced track mixing community, technical, use case topics. I will

Karaf with Dynatrace agent is causing side-effects

2020-09-02 Thread Martin Lichtin
Having an issue with a Karaf deployment that is supervised by Dynatrace. After upgrading from Karaf 14.1.7 to 4.2.9, the JMX bean server reference (in blueprint)   is no longer available. Seeing "unresolved dependencies [(objectClass=javax.management.MBeanServer)]" at startup. Would anyone

Re: Restart issue with subsystem runtime

2020-09-02 Thread Jean-Baptiste Onofre
Thanks Stephan, I will include the fix for next release cycle. Regards JB > Le 2 sept. 2020 à 13:23, Siano, Stephan a écrit : > > Hi Jean-Baptiste, > > I have created https://issues.apache.org/jira/browse/KARAF-6836 > for the issue. Thanks

RE: Restart issue with subsystem runtime

2020-09-02 Thread Siano, Stephan
Hi Jean-Baptiste, I have created https://issues.apache.org/jira/browse/KARAF-6836 for the issue. Thanks for your advice. Best regards Stephan From: Jean-Baptiste Onofre Sent: Mittwoch, 2. September 2020 11:54 To: user@karaf.apache.org Subject: Re: Restart issue with subsystem runtime Hi

Re: Is it possible to activate a DS component only when an HTTP request is completed?

2020-09-02 Thread Tim Ward
If you’re stuck with the async startup then the best way to approach this sort of thing is to take the “service” bit out of the component and manage the service registration lifecycle yourself. It is much less pretty, but at least DS can manage the service and configuration dependencies for

Re: Are there rules for DS components' constructors and @Activate methods?

2020-09-02 Thread Tim Ward
> On 1 Sep 2020, at 20:09, Steinar Bang wrote: > >> Tim Ward : > >>> 1. Not run for a too long time (e.g. not block, waiting for an HTTP >>> response) > >> Basic answer: >> Yes, you should avoid blocking in callbacks generally. The thread is >> not your own and by blocking you could

Re: Restart issue with subsystem runtime

2020-09-02 Thread Jean-Baptiste Onofre
Hi Stephan, I guess you are using the subsystem feature. So, true: the start-level is set to 30 for both subsystem API and Core. I don’t see any strong reason why not starting at default start level. That’s maybe a global change in the features XML. Can you please create a Jira, I will that

Restart issue with subsystem runtime

2020-09-02 Thread Siano, Stephan
Hi, We are running a custom distribution based on Karaf 4.2.9. This distribution also contains the subsystem runtime (as provided by the subsystems Karaf feature). Most bundles are running in the root subsystem (all the stuff that is not installed via subsystems), but for some parts we want to

Re: swagger-ui in Karaf

2020-09-02 Thread Łukasz Dywicki
Webjars ship js/css/probably html resources, but still need an servlet to return them to browser. Hence you need to amend your application. Long time ago I come with "standalone" swagger-ui deployment based repackaged webjar: https://github.com/Code-House/karaf-swagger/blob/master/ui/pom.xml Take