Hi Jean-Phillippe, Just to say, I also couldn’t get it to work some while back. Here’s my post, in case it contains anything useful: http://karaf.922171.n3.nabble.com/iPOJO-on-K4-td4042340.html Dan.
> On 16 Nov 2015, at 17:05, CLEMENT Jean-Philippe > <[email protected]> wrote: > > Dear Karaf addicts, > > I export custom Karaf shell commands using blueprint. It was ok with Karaf > 3.0.x, but not working (i.e. no custom command available in the shell) with > 4.0.3. > > For instance: > Java: > public /*final*/ MySimulator { // No final as GOGO command > public void sayHello() { > System.out.println("hello"); > } > } > > XML: > <bean id="mySimulator" class="shell.MySimulator"/> > > <service ref="mySimulator" auto-export="class-hierarchy"> > <service-properties> > <entry key="osgi.command.scope" value="simu"/> > <entry key="osgi.command.function"> > <array> > <value>sayHello</value> > </array> > </entry> > </service-properties> > </service> > > How to fix this and allow Karaf to handle my commands? > > PS: the assembly does include the following boot features: aries-blueprint, > bundle, shell-compat, ssh > > Kind regards, > Jean-Philippe > > [@@ OPEN @@]
