Hi guys,

the problem is related to this:

https://issues.apache.org/jira/browse/KARAF-4118

I gonna fix that.

Regards
JB

On 11/16/2015 06:18 PM, CLEMENT Jean-Philippe wrote:
Hi JB,

The bean does not implement any interface, so I guess from what you said is a 
"gogo" command.

JP

[@@ OPEN @@]


-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:[email protected]]
Envoyé : lundi 16 novembre 2015 18:15
À : [email protected]
Objet : Re: Karaf 4.0.3 - no custom shell commands

Hi JP,

does your command bean implements
org.apache.karaf.shell.api.action.Action or is it a gogo command ?

Regards
JB

On 11/16/2015 06:05 PM, CLEMENT Jean-Philippe 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 @@]


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to