So far I could not find a way to do this in the new Karaf command framework.
A command is now instantiated each time it is invoked.
It can use OSGi services (@Reference) but there doesn't seem to be a way to set
a filter for it.
I can access the BlueprintContainer (it's available as a service), but not the
beans by their name.
oh well..
On 02.06.2017 20:23, Martin Lichtin wrote:
In Karaf 3, a command can be defined in Blueprint as:
<command>
<action class="my.Cmd">
<property name="producerTemplate" ref="producerTemplate" />
</action>
</command>
where in my case "producerTemplate" comes from a CamelContext created in the
same Blueprint context.
Now in Karaf 4, how would I do the same, i.e. set the property?
- Martin