-
1. Re: how do you put an osgi config admin property in a service filter?
ffang Jan 29, 2013 8:34 PM (in response to jasonnh)Hi,
No, it isn't allowed. Placholders in blueprint only works as metadata, that said, only element which actually is underlying org.osgi.service.blueprint.reflect.ValueMetadata could be substituted during runtime. Those metadata elements generally are some thing like value="xxx" in xml.
Please see a related discussion here[1]
http://servicemix.396122.n5.nabble.com/Property-in-OSGi-service-reference-filter-attribute-td5713964.html
Freeman
-
2. Re: how do you put an osgi config admin property in a service filter?
jasonnh Jan 30, 2013 8:52 AM (in response to ffang)Many thanks Freeman.
The link you provided seems to give a workaround of using a custom NamespaceHandler.
I tried that but need to be able to import the org.osgi.service.blueprint.reflect package.
That is not exported in the preinstalled bundle:
org.apache.aries.blueprint.core-1.0.1.fuse-71-047
It is exported in:
org.apache.aries.blueprint-1.0.1.fuse-71-047
But that causes an exception when installed manually in to my container - they look like similar bundles.
Does anybody know the relationship between those bundles?
If not it suggests that custom NamespaceHandlers are possible in ServiceMix but not fuse.
Thanks again.
-
3. Re: how do you put an osgi config admin property in a service filter?
ffang Jan 30, 2013 9:01 AM (in response to jasonnh)Hi,
IIRC, when blueprint upgrade to 1.0, the old org.apache.aries.blueprint split into org.apache.aries.blueprint.core and org.apache.aries.blueprint.api
And package org.osgi.service.blueprint.reflect exported by org.apache.aries.blueprint.api bundle 1.0.1.fuse-71-047 now, which get installed by default when you start FUSE ESB 7.1
Freeman
-
4. Re: how do you put an osgi config admin property in a service filter?
jasonnh Jan 30, 2013 10:21 AM (in response to ffang)Thanks again.
-
5. Re: how do you put an osgi config admin property in a service filter?
jasonnh Jan 30, 2013 10:36 AM (in response to jasonnh)Actually, I got the wrong package in my previous post. To do the NamespaceHandler approach I also need:
org/apache/aries/blueprint/reflect/ReferenceMetadataImpl
which is in FUSE by default in org.apache.aries.blueprint.core bundle but is not exported.