Fragments and Split Packages

2007-10-25 Thread Pierre De Rop
Hello community; I am facing an issue concerning Felix, Split packages and Fragment bundles. Here is my use case: 1/ We have some bundles with (unfortunately) some esoteric "split packages" which are not supported by OSGI. For instance: b1.jar exports package "com.p" with com.p.C1 b2.jar

OBR best practice

2008-01-07 Thread Pierre De Rop
Hello everyone; We are using the felix OBR (1.0.0) for deploying bundles into our application server. So, we store all our bundles into an OBR http server, and we uses a GUI obr browser which allows to install some bundles from the OBR into the application server. Now, assuming that the

Re: OBR best practice

2008-01-10 Thread Pierre De Rop
for the Import-Service: B2 requirement ... and it will only install B2Impl.jar. Is that right ? /Pierre. Pierre De Rop wrote: Thanks Richard; Fortunately, we are also using bindex; and I have made a quick test which seems to work: * I have inserted the header Import-Service: ... in B1.jar

Re: SCR: How to reconfigure Service Components

2008-03-25 Thread Pierre De Rop
Dienstag, den 25.03.2008, 21:48 +0100 schrieb Pierre De Rop: Hello every one; I am wondering if it's possible to reconfigure a Service Component without restarting it at all ! Here is my use case: I have a Service Component which is activated by the Declarative Service. The corresponding DS xml

Re: Comparing Felix With Knopflerfish

2008-06-02 Thread Pierre De Rop
. The classload should not be done using the classloader of your bundle but the jdk is using it anyways -- hence, we detect that situation and bootdelegate for you :-) regards, Karl On Mon, Jun 2, 2008 at 7:28 AM, Pierre De Rop [EMAIL PROTECTED] wrote: Hello every one; We are using Knopflerfish

Error while uninstalling bundles dynamically.

2008-07-27 Thread Pierre De Rop
Hi there ... When starting the Felix fwk, we use our own bundle installer which is in charge of installing required bundles dynamically (using BundleContext.installBundle() method). Our Installer installs bundles with the start level service; and each bundle is installed with some dedicated

Re: Error while uninstalling bundles dynamically.

2008-07-28 Thread Pierre De Rop
. Unless you always expect it to be installed (such as via the auto-start properties), then I think it might work correctly. - richard Pierre De Rop wrote: Hi there ... When starting the Felix fwk, we use our own bundle installer which is in charge of installing required bundles dynamically

SCR/ unexpected component reactivation while starting up JVM

2008-09-07 Thread Pierre De Rop
Hi everyone; I recently noticed a strange behaviour with Declarative Services. Sometimes (rarely, but it happens), I see that my SCR components are activated twice at jvm startup time. Did anyone came across the same problem ? I know that a component must expect to be deactivated/reactivated

Re: SCR/ unexpected component reactivation while starting up JVM

2008-09-09 Thread Pierre De Rop
. Regards Felix Pierre De Rop schrieb: Hi everyone; I recently noticed a strange behaviour with Declarative Services. Sometimes (rarely, but it happens), I see that my SCR components are activated twice at jvm startup time. Did anyone came across the same problem ? I know that a component must

Re: Import package problem

2008-09-22 Thread Pierre De Rop
candidates, but I don't think that's the case. - richard Pierre De Rop wrote: Hi all; 1) I have a bundle *B* which imports the following package: * Import-Package: javax.xml.bind 2) The System bundle re-exports the* jdk1.6 *javax.xml.bind with version 1.6.0, (see felix.properties): jre-1.6

Re: Unresolved sun.io

2008-09-23 Thread Pierre De Rop
Hi; Maybe you should first check if the package sun.io package is referenced by the jre-1.5 and jre-1.6 parameters (in the felix config.properties file). By default, these parameters re-export all jdk packages to other bundles, but I don't think that sun.io is re-exported. If not, then just

Re: Updating the configuration of a declarative service without reactivation

2008-09-25 Thread Pierre De Rop
H João; I have asked the same question, and you can refer to the following post: http://www.mail-archive.com/users@felix.apache.org/msg01120.html FYI, at Alcatel-Lucent, we don't use conf admin, especially because it sounds like it is not possible to easily reconfigure SCR componenst without

Re: Some thoughts about classloaders

2008-09-25 Thread Pierre De Rop
Hi Kevin; Well, maybe the better way to understand what is going on is looking at the source code of the XMLInputFactory.newInstance(). I guess this method do something like the following: 1. If the Thread Context ClassLoader is set, then use that class loader in order to lookup the

{Disarmed} Re: URLStreamHandler service

2008-10-08 Thread Pierre De Rop
regards, Karl On Wed, Oct 8, 2008 at 1:57 PM, Pierre De Rop [EMAIL PROTECTED] wrote: Hello everyone, I have a bundle which provides a org.osgi.service.url.URLStreamHandlerService with protocol http and https. but, when I use java.net.HttpURLConnection, my handlers are not invoked. I use

URLStreamHandler service

2008-10-08 Thread Pierre De Rop
Hello everyone, I have a bundle which provides a org.osgi.service.url.URLStreamHandlerService with protocol http and https. but, when I use java.net.HttpURLConnection, my handlers are not invoked. I use SCR in order to provide my stream handlers. Here is he SCR.xml:

{Disarmed} Re: {Disarmed} Re: {Disarmed} Re: URLStreamHandler service

2008-10-21 Thread Pierre De Rop
, Richard S. Hall [EMAIL PROTECTED] wrote: Apparently, this part of the spec has been weakened for the next release since neither Equinox nor KF actually enforced it. Perhaps we should add an option for allowing overriding too. - richard Pierre De Rop wrote: Karl, Yes, It should work fine

{Disarmed} Re: {Disarmed} Re: {Disarmed} Re: {Disarmed} Re: URLStreamHandler service

2008-10-21 Thread Pierre De Rop
, 2008 at 10:48 AM, Pierre De Rop [EMAIL PROTECTED] wrote: Hi Karl, I come back to you on this problem. I understand it's possible to provide an http/https URLStream handler, by exposing some classes along with the classpath (like you suggested). But the point is: we have implemented the http

Re: Can't compile the trunk

2008-11-07 Thread Pierre De Rop
Hi Karl; It works, and the issue FELIX-756 is OK (I'll close it). Thanks a lot ! /pierre Karl Pauls wrote: Ups, sorry, I missed something when cleaning up after cutting the release. Could you svn up and try again please :-) regards, Karl On Fri, Nov 7, 2008 at 12:43 PM, Pierre De Rop [EMAIL

Can't compile the trunk

2008-11-07 Thread Pierre De Rop
Hi all, I am trying to recompile the latest felix trunk in order to validate the fixed jira issue FELIX-756 (Allow URLStreamHandler services to override built-in handlers). But I have the following errors when running ant on top of the felix-trunk dir ... Did I miss something, or is there

a feedback about DependencyManager ...

2008-11-17 Thread Pierre De Rop
Hi everyone; I am playing with the interesting DependencyManager toolkit for our dependency injection, and I would like to provide a feedback concerning Auto Configuration ... Indeed, I have observed that, when a required dependency is satisfied, DependencyManager always initialize Pojo's

Error in fwk JarContent class: Unable to open JAR file

2008-12-08 Thread Pierre De Rop
Hi everyone, I am testing hot deployment on our app server (with Felix 1.4.0) and I discovered that, after a couple of bundle updates, then I end up with the following fwk exception: - ERROR: JarContent: Unable to open JAR file. (java.util.zip.ZipException: error in opening zip file)

Re: Error in fwk JarContent class: Unable to open JAR file

2008-12-12 Thread Pierre De Rop
Pierre De Rop wrote: Hi Richard; It was somewhat hard to track, but I think I have found something ... Here it is: 1- I start my app server 2- I perform the touch command on one of my bundles (let us call it bundle A). Bundle A exports some packages to other bundles (let's call them B, C). 3

Re: issue with Felix 1.4.0 / ClassLoader.getResourceAsStream / DynamicImport-Package

2009-01-22 Thread Pierre De Rop
if you use something like DynamicImport-Package: com.* ? - richard Pierre De Rop wrote: Hello everyone, One of our appserver user is currently facing a strange issue (which I can't reproduce for now ... :-( , bu I will managed to do it, if I can ...) (We are running with jdk 1.5 on linux

Can I use SCR Plugin without maven ?

2009-02-05 Thread Pierre De Rop
Hi all, For some of our service components, we are using the SCR for dependency management, but we are not all using maven ... Now, I am wondering if we are definitely forced to use maven, when using the scr plugin, or if there is any ant task, or even a standalone script which we could use

Re: Can I use SCR Plugin without maven ?

2009-02-05 Thread Pierre De Rop
ok, Carsten, thanks for the info. /pierre Carsten Ziegeler wrote: Pierre De Rop wrote: Hi all, For some of our service components, we are using the SCR for dependency management, but we are not all using maven ... Now, I am wondering if we are definitely forced to use maven, when using

Re: Constraint violation detected

2009-02-27 Thread Pierre De Rop
constraint violations, then you will get a BundleException saying the bundle could not resolve. For dynamic imports, you may also see these messages, but in this case if no candidates can be resolved then it is ignored and the dynamic import is not satisfied. - richard Pierre De Rop wrote: Hi

Re: List of Companies using Felix

2009-03-03 Thread Pierre De Rop
Our internal Alcatel-Lucent application server is also using Felix (We started with Knopflerfish two years ago, and now we are on top of Felix :-) ) BR /pierre Guillaume Sauthier wrote: The OW2 consortium is using Felix in JOnAS and EasyBeans. In fact, JOnAS is only tested using Felix, not

Re: question about the osgi presentation in osgi-berlin-20070321.pdf

2009-03-06 Thread Pierre De Rop
Ok, got it. Thanks Stuart /pierre Stuart McCulloch wrote: 2009/3/6 Pierre De Rop pierre.de_...@alcatel-lucent.fr Hello everyone; I have read the Richard's osgi presentation from http://cwiki.apache.org/FELIX/presentations.data/osgi-berlin-20070321.pdf and there is something in the slide

Re: Logging of problems with declarative services?

2009-03-23 Thread Pierre De Rop
Hello Mike, Don't forget to set the felix property ds.loglevel=debug This property is directly used by SCR when logging debug traces. /pierre Stuart McCulloch wrote: 2009/3/21 Michael Greifeneder mik...@gmx.net Hello, I use declarative services with bundle org.apache.felix.scr Is there

Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-09 Thread Pierre De Rop
Hello everyone, I just discovered that invoking Bundle.update() method may fire a framework event PACKAGES_REFRESHED event. In the trunk, I see, in Felix.java, line 1691, that the update method may invoke the refreshPackage(null) method, which then fires the event. Is is a normal behavior ?

Re: Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-09 Thread Pierre De Rop
discover from the registry an old version of the B1Service interface (the old version before the update) ... Am I correct ? If true, then I am wondering what does the FileInstall tool, from Peter Kriens ? Richard S. Hall wrote: On 4/9/09 10:14 AM, Pierre De Rop wrote: Hello everyone, I just

Re: Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-10 Thread Pierre De Rop
/site/apache-felix-osgi-faq.html for more on the why. regards, Karl On Fri, Apr 10, 2009 at 7:40 AM, Pierre De Rop pierre.de_...@alcatel-lucent.fr wrote: Richard, Before posting an issue into osgi-dev about this subject, I would like to check with you if it really makes sense to wait

Re: Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-10 Thread Pierre De Rop
sense ? /pierre Richard S. Hall wrote: On 4/9/09 10:14 AM, Pierre De Rop wrote: Hello everyone, I just discovered that invoking Bundle.update() method may fire a framework event PACKAGES_REFRESHED event. In the trunk, I see, in Felix.java, line 1691, that the update method may invoke

Re: Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-10 Thread Pierre De Rop
(); } } }; _bctx.addFrameworkListener(listener); _pkgAdmin.refresh(null); // asynchronous latch.await(); _bctx.removeFrameworkListener(listener); for (Bundle b : bundles) { b.start(); } } } so, is it ok ? /pierre Pierre De Rop wrote: I have looked into the code

Re: Why Bundle.update() method fires a PACKAGES_REFRESHED event ?

2009-04-11 Thread Pierre De Rop
to PackageAdmin before you could do it. :-( But, assuming you know what is going on, I think this approach should be reasonably safe. - richard On 4/10/09 1:57 PM, Pierre De Rop wrote: I'm sorry, in the previous sample code, I forgot to remove the fwk listener after the refresh, so here is the good fix

version policy and framework javax.* system packages

2010-02-04 Thread Pierre De Rop
Hello everyone, I am using Ant, as well as Bnd, with the following Bnd directives in order to allow my bundles to import APIs using a version range (because I have some multi-version requirements). -versionpolicy [${version;==;$...@}},${version;+;$...@}})* - This clause allows a Using Service

Re: version policy and framework javax.* system packages

2010-02-04 Thread Pierre De Rop
sharing them among bundles ...) maybe this would be the best and easiest solution ... correct ? /pierre On Fri, Feb 5, 2010 at 8:16 AM, Pierre De Rop pierre.de...@gmail.comwrote: Hello everyone, I am using Ant, as well as Bnd, with the following Bnd directives in order to allow my bundles

Re: version policy and framework javax.* system packages

2010-02-05 Thread Pierre De Rop
Thanks a lot, Stuart, I did not know about the bundle-symbolic-name clause: that's so simple ! /pierre On Fri, Feb 5, 2010 at 9:02 AM, Stuart McCulloch mccu...@gmail.com wrote: On 5 February 2010 15:52, Pierre De Rop pierre.de...@gmail.com wrote: Replying to myself ... I could also

A question regarding MetaType

2010-02-10 Thread Pierre De Rop
Hello everyone; For now, we are using our own GUI for configuring our bundles (we use Config Admin). So, the GUI loads property meta informations (labels, default values) from a proprietary configuration file which is embedded in the bundle (META-INF). But now, we would like to be able to expose

Re: OSGi Bundle Profiling

2010-02-19 Thread Pierre De Rop
Hi Nima, I uses VisualVM (https://visualvm.dev.java.net/) with the following jvm options: -Dcom.sun.management.jmxremote.port= \ -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Djava.rmi.server.hostname=HOST \ (replace HOST by your host name).

Re: AOP in Apache Felix

2010-03-31 Thread Pierre De Rop
Hello Ivanhoe; As an addition to Marcel's response, here is the same version of the Servlet example, but using DM annotations: @AspectService(ranking=1) public class ServletAspect implements Servlet { volatile Servlet m_servlet; // real/original servlet private long m_counter; public void

Re: unable to build todays Snapshot of Felix Project

2010-04-16 Thread Pierre De Rop
Hello Matthias, Yes, it's a know problem, which still has to be fixed. The DependencyManager sub-project is still in flux, so, please, just comment the test module in dependencymanager/pom.xml, or just run maven with the -Dmaven.*test*.*skip*=true option. Kind Regards; /pierre On Fri, Apr 16,

Re: How to handle java.lang.IllegalStateException: The EventAdmin is stopped during shutdown

2011-01-11 Thread Pierre De Rop
Hi Alexander; Are you using the dependencymanager from the trunk ? If so, then I assume that you are also using the dependencymanager compatibility bundle, because I see that you are using the old org.apache.felix.dependencymanager package ? In this case, you might have found a bug from the DM

Re: AspectService for dynamic reference

2011-03-15 Thread Pierre De Rop
Hi Vladimir, I'm not sure to understand: when you are talking about AspectService, are you talking about DependencyManager AspectService ? if true, then I don't think it works in your case, because DM AspectService only work if you track MetadataProvider with DependencyManager ServiceDependency.

Re: Declarative Services, determining reference satisfaction with target services

2011-08-27 Thread Pierre De Rop
Hi David, Indeed I have also reproduce the problem you are describing. I think I have a working patch; so I will create a JIRA issue and will attach the patch to it. kind regards; /Pierre On Fri, Aug 26, 2011 at 11:58 PM, david.humen...@l-3com.com wrote: It looks like part of the problem is

Re: Declarative Services, determining reference satisfaction with target services

2011-08-27 Thread Pierre De Rop
David, I created the FELIX-3090 issue, and attached a patch to it. can you test it ? thanks. /pierre On Sat, Aug 27, 2011 at 11:50 PM, Pierre De Rop pierre.de...@gmail.comwrote: Hi David, Indeed I have also reproduce the problem you are describing. I think I have a working patch; so I

Re: Felix GoGo bundle example with DS

2012-01-15 Thread Pierre De Rop
Hi Cristiano; The following link describe the service properties which must be provided by gogo commands: https://cwiki.apache.org/FELIX/rfc-147-overview.html kind regards; /Pierre On Sat, Jan 14, 2012 at 8:31 PM, Cristiano Gavião cvgav...@gmail.comwrote: Hi Felix, I'm not using the DS

Re: Felix DependencyManager with annotation/eclipse

2012-01-23 Thread Pierre De Rop
, Mohica On Thu, Jan 12, 2012 at 10:42 AM, Pierre De Rop pierre.de...@gmail.comwrote: Hi Mohica, Good to know that you found how to debug using eclipse, may be you have read the following link ? https://cwiki.apache.org/FELIX/integrating-felix-with-eclipse.html Now, I have tried to reproduce

Re: multiple configuration dependency

2012-01-30 Thread Pierre De Rop
Hi Mohica, Assuming that service2 needs configuration from service1.pid and service2.pid, then there are two cases: 1) case 1: if both services (service1/service2) are packaged in the same bundle, then yes, service2 may define two configuration dependencies on both pids, for instance like this:

Re: configurationAdmin update handler

2012-02-04 Thread Pierre De Rop
Hi Mohica, I think I have reproduced the issue you describe, and after having checked, the root cause of the problem is probably the following: By default, fileinstall listens to configuration updates, using the ConfigAdmin interface org.osgi.service.cm.ConfigurationListener interface. So, when

Re: multiple configuration dependency

2012-02-04 Thread Pierre De Rop
: + config); } } kind regards; /Pierre On Tue, Jan 31, 2012 at 10:33 AM, Pierre De Rop pierre.de...@gmail.comwrote: Hi Mohica, This sounds like a bug, I will investigate asap. regards /pierre On Mon, Jan 30, 2012 at 9:56 PM, Mohica Jasha mohica.ja...@gmail.comwrote: On Mon, Jan 30, 2012

Re: Felix SCR for Declarative Services 1.2

2012-10-06 Thread Pierre De Rop
Hi Caspar, The SCR from the Felix trunk is compiled with compendium 4.3. Can you recompile scr from trunk and do a test with it ? I think it should work. regards; /Pierre On Thu, Oct 4, 2012 at 7:40 PM, Caspar MacRae ear...@gmail.com wrote: Hello, Is there a version of Felix SCR that works

Re: DependencyManager - osgi.cmpn-4.3.1

2012-11-11 Thread Pierre De Rop
Hi Bokie, I did a quick test with a simple DM activator, using a ConfigurationDependnecy, and also using osgi.cmpn-4.3.1.jar, but I could not reproduce the problem. Can you please give us the list of the bundles you are using ? From my side, I used the following bundles (with

Re: DependencyManager - osgi.cmpn-4.3.1

2012-11-12 Thread Pierre De Rop
Hi Bokie, I reproduced the problem with config-admin 1.6.0. Are you also using it ? Anyway, Felix found the root cause: it's because of a duplicate export of the CM api (org.osgi.service.cm package): 1) config-admin 1.6.0 exports org.osgi.service.cm with version=1.5 (because it implements the

Re: Question about scr release schedule

2013-05-23 Thread Pierre De Rop
Hello Adam; I don't know when David or Felix plans to cut a release, but looking at your trace, it seems that your maven crashed ? Maybe you ran out of memory ? Can you retry with more memory, using MAVEN_OPTS=-Xmx512m -Xms512m -server ? if some tests are still failing, can you then provide the

Re: handle org.apache.servicemix.bundles.freemarker package conflict in Felix?

2013-05-27 Thread Pierre De Rop
Hi Christiano, I think that Felix was talking about adding the following property in your framework conf/config.properties: org.osgi.framework.system.packages.extra=org.w3c.dom.traversal; version=... You can refer to

Re: Compendium Services managed properties and multiple bundles

2013-08-23 Thread Pierre De Rop
Hi Tim, I don't know if gemini BP is compatible with CM from OSGi compendium 4.3, but using a 4.3 CM allows to share the same configuration PID across multiple bundles if the configuration is created using a specific ? location binding (see 104.4.1 chapter, in compendium 4.3). Technically,

Re: configadmin: no visibility to configuration

2013-09-10 Thread Pierre De Rop
Hi Jean-Philippe, in addition to the responses made by Felix and Roland, you can also refer to configuration admin specification, especially in the chapter 104.4.1 of the 4.3 OSGi compendium, which explains what is a configuration location binding (the second parameter of the

Re: SCR Bug?

2013-09-18 Thread Pierre De Rop
Hi Dave, Could you give a try to the trunk version of the SCR (I think that the code changed a lot in the trunk since 1.6.2). regards; /Pierre On Wed, Sep 18, 2013 at 10:09 PM, Dave Smith dave.sm...@candata.com wrote: 1.6.2 Dave Smith Candata Ltd. 416-493-9020x2413 Direct: 416-855-2413

Re: Articles about the Apache Felix Dependency Manager

2013-10-30 Thread Pierre De Rop
Hi Marcel, Nice articles, I will look into them with pleasure. As Bram suggested, I also added the links in Felix documentation: http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-resources.html best regards; /Pierre On Tue, Oct

Re: Declarative Services

2013-11-01 Thread Pierre De Rop
Hi David, I'm not sure whether I fully understand or not, can you please clarify and describe with more details the circular dependency involved in this problem ? As far as I understand what you are describing: - C is immediate, enabled, and has two required references on both A, B. - A is

Re: IPojo performance benchmark

2014-06-21 Thread Pierre De Rop
Hello Clement, I'm also working on some benchmark related to dependency manager, declarative service, and after reading this post, I tried to incorporate a scenario using iPojo in my benchmark. And it seems that I'm also observing a performance problem. I will try to commit somewhere my

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
De Rop (pierre.de...@gmail.com) wrote: Hello Clement, I'm also working on some benchmark related to dependency manager, declarative service, and after reading this post, I tried to incorporate a scenario using iPojo in my benchmark. And it seems that I'm also observing a performance problem

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
, ...): http://felix.apache.org/ipojo/api/1.11.0/org/apache/felix/ipojo/api/ComponentType.html#createInstance(java.util.Dictionary) Thanks —G Le 25 juin 2014 à 12:05:29, Pierre De Rop (pierre.de...@gmail.com) a écrit: Hi Clement, I finally committed a stress test for dependency manager 4 in https

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
substitution in the filter of the dependency The value will be substituted automatically. You can use any property name of your component , they will be recognized. —G Le 25 juin 2014 à 16:12:05, Pierre De Rop (pierre.de...@gmail.com) a écrit: Hi Guillaume; Thanks for reviewing; But if I

Re: Dependency Manager Shell - IllegalStateException: Invalid BundleContext after update of some bundles

2014-06-27 Thread Pierre De Rop
Hello Andras; just to say I saw your post. I'm just lacking of time this week, but I will look into your problem this WE; in the mean time, it would be helpful if you could confirm that you also have the problem with the dm and shell trunk versions ? thanks; kind regards; /Pierre On Wed, Jun

Re: Dependency Manager Shell - IllegalStateException: Invalid BundleContext after update of some bundles

2014-06-30 Thread Pierre De Rop
on a release? thanks! Andras On 27 June 2014 08:42, Pierre De Rop pierre.de...@gmail.com wrote: Hello Andras; just to say I saw your post. I'm just lacking of time this week, but I will look into your problem this WE; in the mean time, it would be helpful if you could confirm

Re: Building better OSGi applications

2014-07-17 Thread Pierre De Rop
Hi Philipp; I'm using DM and DS in some large applications (~400 bundles, ~1000 services), and I confirm that both DM and DS are fast. If you want to give a try to DM java API, you can take a look at [1]. it's a simple but powerful API, which allows to not only declare simple services, but also

[ANN] DependencyManager 3.2.0 and related subprojects released

2014-07-22 Thread Pierre De Rop
The Apache Felix team is pleased to announce the release of Felix Dependency Manager 3.2.0, Dependency Manager Shell 3.2.0, Dependency Manager Annotation 3.2.0, and Dependency Manager Runtime 3.2.0 This is a maintenance release with several bug fixes and with some improvements made in the

Re: Dependency Manager: depend on several linked services

2014-09-22 Thread Pierre De Rop
Hello Philipp, So, let's see if I understand you correctly: - you have N Device services (each having a device.id service propery). - then you have N corresponding DeviceParameter instances, each one also having a device.id service property, matching a corresponding Device. - and you want to

Re: Dependency Manager: depend on several linked services

2014-09-23 Thread Pierre De Rop
in the lifecycle methods ( start(Component c) ). Can I get the actual object (here the Consumer instance) from this Component? Regards Philipp On 22.09.2014 17:41, Pierre De Rop wrote: Hello Philipp, So, let's see if I understand you correctly: - you have N Device services (each

Re: Dependency Manager: depend on several linked services

2014-09-23 Thread Pierre De Rop
) - createAdapter creates a new component *for each* tracked service which appears. (n to n relation) Note: I'm on DM 3.2 for now, so Component.getService() is what I was looking for. Thanks regards Philipp On 23.09.2014 08:41, Pierre De Rop wrote: Hi Philipp; so; regarding your first question

Re: Dependency Manager: how to update service properties

2014-09-24 Thread Pierre De Rop
Hi Philipp; see my response, inlined below: On Wed, Sep 24, 2014 at 4:46 PM, Bulu b...@romandie.com wrote: Hello all If the published property of a service is based on a value in the actual service object, and that value later changes, how can I update the properties using DM? Example:

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Pierre De Rop
with incomplete properties, and just update them in the init method when the values are present. But that seems like a hack... Is there a better way? Thanks Philipp On 24.09.2014 18:09, Pierre De Rop wrote: Hi Philipp; see my response, inlined below: On Wed, Sep 24, 2014 at 4:46 PM, Bulu b

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Pierre De Rop
); props.put(EventConstants.EVENT_FILTER,(device.id=xxx)); // xxx comes from the Device instance mgr.add(createAdapterService(Device.class,null) .setImplementation(DeviceConsumerImpl.class) .setInterface(EventHandler.class.getName(), props); Philipp On 25.09.2014 10:53, Pierre De Rop wrote: Hi

Re: DependencyManager: start order relevant for adapters?

2014-09-30 Thread Pierre De Rop
Hello Philipp, I don't know if this may help, but if you are using DM 3.2.0, please don't forget that if you are declaring some extra-service dependencies from your init() methods (in your adapter for example), then you have to declare them as instance bound dependencies: you have to make a call

Re: DependencyManager: start order relevant for adapters?

2014-10-01 Thread Pierre De Rop
() .setInstanceBound(true) .setService(OtherService2.class, (name=yyy)) .setRequired(true)) ); } } kind regards; /pierre Regards Philipp On 30.09.2014 23:03, Pierre De Rop wrote: Hello Philipp, I don't know if this may help, but if you

Re: DependencyManager: notify third party object of changed adaptee properties

2014-10-16 Thread Pierre De Rop
Hello Philipp, I think that currently, it is not possible to specify a third party callback object to be notified when the adaptee services properties are changed, and only your adapter will be notified. One possible alternative could consist in letting the adapter impl provide an adapted

[ANN] Apache Felix Dependency Manager 4 (top-level release R2) Released

2015-03-25 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R2. This R2 release provides an important fix for the previous R1 release which had a bug regarding Iterable autoconfig fields. This release is available from:

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
Hello Bernd, Sorry for this, indeed I just reproduced the issue with bndtools 2.4.1 (but as far as I remember, the tutorial worked fine with previous bndtools versions, or may be there is a regression somewhere). I will investigate this and will get back to you asap. PS: if you are using Apache

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
, Pierre De Rop pierre.de...@gmail.com wrote: Hello Bernd, Sorry for this, indeed I just reproduced the issue with bndtools 2.4.1 (but as far as I remember, the tutorial worked fine with previous bndtools versions, or may be there is a regression somewhere). I will investigate

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
On Thu, Mar 26, 2015 at 12:46 PM, Bernd Prager be...@prager.ws wrote: Thank you very much Pierre for the quick response. Good job. Sent from my iPhone On Mar 26, 2015, at 7:30 AM, Pierre De Rop pierre.de...@gmail.com wrote: Ok, Bernd; I understand what is going on: now with BndTools

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
cool ! :-) On Thu, Mar 26, 2015 at 4:17 PM, Bernd Prager be...@prager.ws wrote: I confirm, it's working. Thank you! On 26.03.2015 08:26, Pierre De Rop wrote: I just created a jira issue (FELIX-4836) and committed a candidate fix in revision 1669348. Also, I had to fix some wrong

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
Hello Thomas, if you are using DM annotations, you can try to add the service property mentioned by Raymond using the following: @Component(properties = @Property(name = osgi.http.whiteboard.listener, value = true)) public class MyContextListener implements ServletContextListener { ... } And if

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
- org.osgi.useradmin.1.1.0 - osgi.enterprise.4.2.0 - felix.http.jetty.2.2.2 Is this an intended behaviour? Best regards ant thanks for your patience, Thomas 2015-05-12 15:43 GMT+02:00 Pierre De Rop pierre.de...@gmail.com: Hello Thomas, if you are using DM annotations, you can try

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
|Apache Felix Log Service (1.0.1) 14|Active |1|Apache Felix Metatype Service (1.0.12) /Pierre On Tue, May 12, 2015 at 5:30 PM, Pierre De Rop pierre.de...@gmail.com wrote: Thomas, I suggest to not include the api bundles in the runtime (osgi.enterprise, and osgi.residential), which

[ANN] Apache Felix Dependency Manager 4 (top-level release R5) Released

2015-06-09 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R5. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here:

Re: DependencyManager and bundle-private components

2015-05-22 Thread Pierre De Rop
Hello Simon, DM, like DS does not implement a private service registry to intra-bundle components (well, except for optimized DM filter indices, but this is another story). I think Ipojo do support what you are describing, but I prefer to let other people respond about this since I'm not enough

Re: Servlet whiteboard registration vs. direct registration - Filter not working

2015-05-23 Thread Pierre De Rop
Hello Thomas, Just a remark, when you define a DM @Component annotation on a class which implements an interface, then the interface is automatically registered in the OSGi service registry. So, in the case of your MyManualServlet, since you are registering it manually from the @Start method,

[ANN] Apache Felix Dependency Manager 4 (top-level release R3) Released

2015-05-26 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R3. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here:

Re: Cannot build project from source

2015-07-27 Thread Pierre De Rop
Hello Ken, oops, yes, Marcel is right: I forgot to remove the dependencymanager from the toplevel pom.xml (DM is now built using bndtools instead of maven). I just committed in rv 1692952 the toplevel pom.xml. I also added the resolver module in the toplevel pom.xml (the framework is now

Re: How To Build Apache Felix Dependency Manager

2015-09-16 Thread Pierre De Rop
Hello Hubert, This is an old documentation. We are now using BndTools and Gradle and the latest documentation is located at [1]. More specifically, how to build DM is described at [2] Don't hesitate to ping here if you need more helps. cheers; /Pierre [1]

Re: How To Build Apache Felix Dependency Manager

2015-09-16 Thread Pierre De Rop
r: package aQute.bnd.osgi does not exist > import aQute.bnd.osgi.Clazz; > ^ > > E:\dependencymanager\org.apache.felix.dependencymanager.annotation\src\org\apache\felix\dm\annotation\plugin\bnd\AnnotationCollector.java:55: > error: package aQute.bnd.osgi.Des

Re: Dependency Manager does not behave as expected

2015-09-16 Thread Pierre De Rop
Hi Hubert; I don't understand how this is possible, because a DM component initial state is Inactive, and remains in this state until you add it to a DependencyManager object. So, your service implementation can not be called in start() before you add the component to the dm object. Ok, in

Re: How To Build Apache Felix Dependency Manager

2015-09-17 Thread Pierre De Rop
ams that the latest release is DM 4.1.1 > But this is not available in > > http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.dependencymanager > > > The latest release there is 4.1.0 > > > If 4.1.1 is released, could somebody please make 4.1.1 available o

Re: How To Build Apache Felix Dependency Manager

2015-09-17 Thread Pierre De Rop
> import aQute.bnd.osgi.ClassDataCollector; > > ^ > > > > > > E:\dependencymanager\org.apache.felix.dependencymanager.annotation\src\org\apache\felix\dm\annotation\plugin\bnd\AnnotationCollector.java:54: > > error: package aQute.bnd.osgi does not

Re: Dependency Manager does not behave as expected

2015-09-17 Thread Pierre De Rop
ter adding the service dependency. > In my opinion DM should not try to start the service before I finally add > the component > to DM, but now it tries to start the service, as soon as add a > ServiceDependency. > > Tested with DM 4.1.0 > > Thank you again > Hubert >

[ANN] Apache Felix Dependency Manager Release R6

2015-12-01 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager release R6. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here:

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-28 Thread Pierre De Rop
e: > Pierre, > > I've tested with trunk that seems to work for me :) You are quick, fixing > the issue took you less time than it took me figuring out what was > happening .. > > Thanks! > > Bram > > On Thu, May 26, 2016 at 3:45 PM Pierre De Rop <pierre.de...@gma

[ANN] SCR Tooling Bnd Plugin 1.5.0

2016-05-30 Thread Pierre De Rop
The Felix team is pleased to announce the release of SCR Tooling Bnd Plugin 1.5.0 This release is available from http://felix.apache.org/site/downloads.cgi Release Notes: Changes from 1.4.0 to 1.5.0 --- ** Improvement * [FELIX-5108] - scr bnd plugin: Add option to

  1   2   >