OK Boris, got it.

Let me check for a workaround.

Regards
JB

On 07/14/2011 02:46 PM, Ilyushonak Barys wrote:
JB,

Thank you for quick response.
My goal is to get an instance of the service to check, for example, data source 
connection is ok.
As I see ls  doesn't help me with this goal.

Regards,
Boris

-----Original Message-----
From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net]
Sent: Thursday, July 14, 2011 4:44 PM
To: user@karaf.apache.org
Subject: Re: karaf 2.2.0 shell and getServiceReferences

Hi,

you can try to use ls (for list service).

I'm gonna see what we changed around that between Karaf 2.1.x and Karaf 2.2.x.

Regards
JB

On 07/14/2011 02:38 PM, Ilyushonak Barys wrote:
Greetings!

I would like to use the following command in Karaf 2.2.0 (actually
2.2.0-fuse-00-39):

getService ((getServiceReferences javax.sql.DataSource
'(dataSourceName=jdbc.mydatasource)') get 0)

And I got:

Command not found: getServiceReferences

Could you please help me. How can I get a service instance in Karaf shell?

PS.

It worked with Karaf 2.1.4

Here is the trace from log.

org.apache.felix.gogo.runtime.CommandNotFoundException: Command not
found: getServiceReferences

at
org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:471)[40:
org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:40
0)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.ka
raf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.eval(Closure.java:282)[40:org.ap
ache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:33
6)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.ka
raf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.eval(Closure.java:282)[40:org.ap
ache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:33
6)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.ka
raf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org
.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessio
nImpl.java:79)[40:org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at
org.apache.karaf.shell.console.jline.Console.run(Console.java:240)[40:
org.apache.karaf.shell.console:2.2.0.fuse-00-39]

at java.lang.Thread.run(Thread.java:662)[:1.6.0_24]

Regards,

Boris

_______________________________________________________

The information contained in this message may be privileged and conf
idential and protected from disclosure. If you are not the original
intended recipient, you are hereby notified that any review,
retransmission, dissemination, or other use of, or taking of any
action in reliance upon, this information is prohibited. If you have
received this communication in error, please notify the sender
immediately by replying to this message and delete it from your
computer. Thank you for your cooperation. Troika Dialog, Russia.

If you need assistance please contact our Contact Center (+7495) 258
0500 or go to www.troika.ru/eng/Contacts/system.wbp


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

_______________________________________________________

The information contained in this message may be privileged and conf idential 
and protected from disclosure. If you are not the original intended recipient, 
you are hereby notified that any review, retransmission, dissemination, or 
other use of, or taking of any action in reliance upon, this information is 
prohibited. If you have received this communication in error, please notify the 
sender immediately by replying to this message and delete it from your 
computer. Thank you for your cooperation. Troika Dialog, Russia.
If you need assistance please contact our Contact Center  (+7495) 258 0500 or 
go to www.troika.ru/eng/Contacts/system.wbp


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to