IPojo method annotated with @Updated called twice

2014-08-31 Thread Milen Dyankov
Hi everyone, I'm aware this issue has been reported (FELIX-4172) and apparently fixed in ipojo-runtime-1.11.0. However the same (or very similar one) happens in Karaf 3.0.1 with IPojo 1.12.0. Here is my very simple test class: @Component( immediate = true, managedservice = update.test)

Re: IPojo method annotated with @Updated called twice

2014-09-01 Thread Milen Dyankov
at 12:24:49, Milen Dyankov (milendyan...@gmail.com) wrote: Hi everyone, I'm aware this issue has been reported (FELIX-4172) and apparently fixed in ipojo-runtime-1.11.0. However the same (or very similar one) happens in Karaf 3.0.1 with IPojo 1.12.0. Here is my very simple test class

iPojo @Stereotype annotated annotation from separate bundle

2014-09-12 Thread Milen Dyankov
Hi, Is the usage of a @Stereotype annotated annotation from another bundle supported? It doesn't seem to work even though the package is properly exported and imported. The docs only say: If the stereotyped annotation is directly in the manipulated module, no problems: any front-end will work

Re: iPojo @Stereotype annotated annotation from separate bundle

2014-09-15 Thread Milen Dyankov
to export the stereotype package? On Mon, Sep 15, 2014 at 11:24 AM, Milen Dyankov milendyan...@gmail.com wrote: Thanks for explaining how it works Clement! I am indeed using maven and I tried to add the jar as a maven-ipojo- plugin dependency but it still does not seem to work. I'll play

Re: iPojo @Stereotype annotated annotation from separate bundle

2014-09-16 Thread Milen Dyankov
. Cheers, Clement On 15 septembre 2014 at 15:05:17, Milen Dyankov (milendyan...@gmail.com) wrote: OK, found the problem. It's due to how Export-Package of the maven-bundle-plugin is configured. Here is an example: - I have stereotype maven project where I define a @Stereotype

Re: iPojo @Stereotype annotated annotation from separate bundle

2014-09-29 Thread Milen Dyankov
in the manipulator class path, it should be used. Obviously, if it’s in the bundle, it’s necessarily in the class path. Could you open an issue, it’s probably a bug. Cheers, Clement On 16 septembre 2014 at 10:57:46, Milen Dyankov (milendyan...@gmail.com) wrote: OK, my bad, I asked the question poorly

IPojo injecting a service/component into manually created objects

2014-10-08 Thread Milen Dyankov
Hi everyone, I faced a use case where I don't really know what is the best way to solve. So here is oversimplified version of the problem: - I'm using a 3rd party framework (available as OSGI bundle) that does something with objects (what exactly is irrelevant) - The framework is configured

iPOJO and ManagedServiceFactory

2014-10-13 Thread Milen Dyankov
Hi, can someone point me to an example of using ConfigAdmin's ManagedServiceFactory with iPOJO components, please? The reason I'm asking is, what the docs (

Re: iPOJO and ManagedServiceFactory

2014-10-13 Thread Milen Dyankov
in the config admin create instances et support dynamic reconfiguration. Depending of what you want to do, you can also rely on the Factory service exposed for each @Component. Cheers, Clement On 13 octobre 2014 at 12:02:36, Milen Dyankov (milendyan...@gmail.com) wrote: Hi, can someone point me

Re: iPOJO and ManagedServiceFactory

2014-10-14 Thread Milen Dyankov
Thank you Clement, It works now! I suppose there is no really a easy way to change the factory PID in this case, right? Regards, Milen On Mon, Oct 13, 2014 at 3:22 PM, Clement Escoffier clement.escoff...@gmail.com wrote: Hi, On 13 octobre 2014 at 13:35:49, Milen Dyankov (milendyan

Re: Datasource with Apache Felix.

2014-12-17 Thread Milen Dyankov
You probably know this but just to make it clear - Karaf is not directly comparable with Felix. It can use Felix or Equinox but it comes OOTB with many bundles pre-installed. That is why your datasource works in Karaf. It will work in Felix if you have appropriate bundles (that understand what

Re: Datasource with Apache Felix.

2014-12-17 Thread Milen Dyankov
commands), the question is why not directly using Karaf ;) Regards JB On 12/17/2014 02:44 PM, Milen Dyankov wrote: You probably know this but just to make it clear - Karaf is not directly comparable with Felix. It can use Felix or Equinox but it comes OOTB with many bundles pre-installed

Re: Datasource with Apache Felix.

2014-12-17 Thread Milen Dyankov
that. Providing an easy/flexible/enterprise ready container on top of the framework is very interesting for the users. My $0.02 Regards JB On 12/17/2014 03:22 PM, Milen Dyankov wrote: Well if someone says he wants to use B instead of A, I assume he/she has his reasons. That's why I tend to avoid

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-06 Thread Milen Dyankov
, Ferry Huberts maili...@hupie.com wrote: On 05/02/15 21:21, Milen Dyankov wrote: Agree to some extend. However here is what I meant with a stupid example. Say I have GUI where I can dynamically add buttons to perform operations on something. If I could do

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-06 Thread Milen Dyankov
dealt with annotation processing for javaee I cannot express how strongly I am against runtime annotation processing for DS. thanks david jencks On Feb 5, 2015, at 3:41 PM, Milen Dyankov milendyan...@gmail.com wrote: So as I mentioned earlier you have 2 options: (a) build time - which

Re: Getting a reference to a declarative service

2015-01-20 Thread Milen Dyankov
Also make sure that apart from generating the descriptor(s) it adds the correct 'Service-Component' header in your manifest. I recall some problems when both 'maven-bundle-plugin' and 'maven-scr-plugin' are used together. I personally try to avoid using 'maven-scr-plugin' and add

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread Milen Dyankov
I may be interpreting Pawel's case wrong but I also have had situations in the past where I wish I was able to somehow mark a interface (by using annotation for example) and basically say whoever implements that interface should be automatically registered as a service! AFAIK that is not possible

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread Milen Dyankov
. It would certainly interfere with any existing component model such as DS or blueprint and probably with any attempt to register a service in code. david jencks On Feb 5, 2015, at 2:37 PM, Milen Dyankov milendyan...@gmail.com wrote: I may be interpreting Pawel's case wrong but I also have had

Re: OSGi Declarative Services dependency on a generic supertype

2015-02-05 Thread Milen Dyankov
on the interface in the inheritance hierarchy and add it to the exposed services. thanks david jencks On Feb 5, 2015, at 3:21 PM, Milen Dyankov milendyan...@gmail.com wrote: Agree to some extend. However here is what I meant with a stupid example. Say I have GUI where I can dynamically

Core and Compendium APIS at runtime

2015-05-17 Thread Milen Dyankov
Hi, I recently stumbled upon something that makes me wonder about OSGI specs APIs. As Metatype was the one API that made me start thinking about the issue, I'll use it as an example but the question is about APIs in general. So while attempting to replace Felix's Metatype with Equinox one, I

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Milen Dyankov
. Regards, Milen On Sun, May 17, 2015 at 8:01 PM, Richard S. Hall he...@ungoverned.org wrote: On 5/17/15 12:57 , Milen Dyankov wrote: Hi, I recently stumbled upon something that makes me wonder about OSGI specs APIs. As Metatype was the one API that made me start thinking about the issue, I'll

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Milen Dyankov
...@ungoverned.org wrote: On 5/20/15 05:15 , Milen Dyankov wrote: Thanks for your answer Richard! I am aware if the FAQ however what it basically tells you is it depends ;) Unfortunately, it does depend on your circumstances. There are very few cases in software engineering where you can say

Re: Core and Compendium APIS at runtime

2015-05-20 Thread Milen Dyankov
, Milen Dyankov wrote: Well I agree in general. My only point is that IMHO the one defining the API should also be the one providing it at runtime. Since OSGi alliance is defining a spec which describes a service API it should be the one providing the API bundle. And apparently the OSGi Alliance

Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-31 Thread Milen Dyankov
Thanks Richard, oversimplifying the scenario and bringing it down to felix related parts, what I did can be described as "build -> start felix -> demo something -> stop felix -> build -> start felix > ..." loop! What I observed was ... hmm I guess I should call it ... inconsistent behavior.

Re: Bundle can't find its own classes: NoClassDefFoundError

2015-10-30 Thread Milen Dyankov
This seems to happen with felix (version 4.6 in my case) from time to time. Basically I have some symlinks in `felix/bundle` folder pointing to the jar files generated by my IDE/build tool. Someties (haven't tried to figure out why) it will not notice the JAR has changed and the only way to force

Specifying dependency between a bundle and a fragment bundle

2016-01-13 Thread Milen Dyankov
Lets say I have a UI bundle that renders a button from template. The template is just a text file(s) inside UI bundle. Clicking the button calls a service (for the purpose of this example say one with the highest rank). The requirement is: change both the service that is called and the button in

Re: Specifying dependency between a bundle and a fragment bundle

2016-01-13 Thread Milen Dyankov
N @@] > > > -----Message d'origine- > De : Milen Dyankov [mailto:milendyan...@gmail.com] > Envoyé : mercredi 13 janvier 2016 13:57 > À : users@felix.apache.org > Objet : Re: Specifying dependency between a bundle and a fragment bundle > > Thank you for your thoughts regarding

Re: Specifying dependency between a bundle and a fragment bundle

2016-01-13 Thread Milen Dyankov
t; "find it". The proxy has to exclude itself from S service candidates. > > ...just a quick thought... > > JP > > [@@ OPEN @@] > > -Message d'origine- > De : Milen Dyankov [mailto:milendyan...@gmail.com] > Envoyé : mercredi 13 janvier 2016 11:10 > À

Re: Specifying dependency between a bundle and a fragment bundle

2016-01-14 Thread Milen Dyankov
> I would have made this via services, but there might be other ways such as > subsystems (?) > > JP > > [@@ OPEN @@] > > > -Message d'origine- > De : Milen Dyankov [mailto:milendyan...@gmail.com] > Envoyé : mercredi 13 janvier 2016 14:49 > À : users@

[Ann] Modularity Conference in Darmstadt Germany : ModConf

2016-08-22 Thread Milen Dyankov
Hi guys, As some of you may have heard (via other communication channels) we at Liferay are trying to put together a new event in Europe related to modularity. This new event, called Modconf will be a one-day (Nov 15) "conference within a

Re: setting the objectclassdefinition from felix file install

2016-10-03 Thread Milen Dyankov
Isn't it so that if your configuration is NOT mandatory the @Activate method will get the default and @Modified method will get the one from the file later on? Or am I misinterpreting the question? On Mon, Oct 3, 2016 at 7:38 PM, Raymond Auge wrote: > Well, I'm not

Re: API baselining with maven-bundle-plugin

2017-06-23 Thread Milen Dyankov
> > you will be able to build another 1.0.0 locally, but you will not be able > to release it again I think that depends on particular Maven repository and it's configuration. While this is probably true for Central (not sure but would assume so) a local Nexus repo can be configured to allow

Re: Re: Felix and Pax Logging

2017-11-30 Thread Milen Dyankov
tion and javax.mail > packages, which are not "out of the box" suitable for osgi.. > > My struggle wil go on... i will try a couple of things. > > Thanks for your help, > Daniel > > > Gesendet: Mittwoch, 29. November 2017 um 19:49 Uhr > Von: "Milen Dyankov&

Re: Felix and Pax Logging

2017-11-29 Thread Milen Dyankov
I think in order to do that you need FileInstall ( http://felix.apache.org/documentation/subprojects/apache-felix-file-install.html). You need to configure it to watch the folder(s) you want via system property `felix.fileinstall.dir`. Then you can place a file `org.ops4j.pax.logging.cfg` in that

Re: Fw: Mem Leak

2017-11-20 Thread Milen Dyankov
Have you tried to refresh (there is gogo command for that) your runtime? AFAIK some wirings remain after the bundle is unistalled until the framework is refreshed. On Mon, Nov 20, 2017 at 1:59 PM, daniel stieger wrote: > > > > > Gesendet: Montag, 20. November 2017 um