Hello.

Probably true. A map is not a very suitable type of object to reference
services. It was just a quick and dirty prototype. In the future I'll
probably design it with an explicit interface/class pair, and the filter
should not be needed anymore.

Thanks again !!!


Le ven. 18 avr. 2025 à 16:05, Matt Pavlovich <mattr...@apache.org> a écrit :

> I’ve had issues using the ‘filter' option on reference in the past with
> Karaf commands. I think may not be evaluated or support for it isn’t
> implemented at this point.
>
> The work-around is to collect _all_ service for an interface and then
> identify the one you want to work with within the Karaf command.
>
> In your case, you may need a wrapper bean that contains the map and is
> easier to pass around and identify by your karaf command vs a java.util.Map.
>
> -Matt Pavlovich
>
> On Apr 18, 2025, at 6:16 AM, Ephemeris Lappis <ephemeris.lap...@gmail.com>
> wrote:
>
> @Reference(filter = "(osgi.blueprint.compname=\"dlqRoutesTable\")")
> Map<String, String> routesTable;
>
>
>

Reply via email to