services console command filter problem [message #1059987] |
Wed, 22 May 2013 08:57  |
Eclipse User |
|
|
|
Hello,
I'm facing a problem with the services command at equinox kepler M7 that I would like some advice.
When I use: "osgi> services" without any parameter I got this:
{org.jbehave.osgi.interactive.services.StoryRunnerService}={service.pid=org.jbehave.osgi.interactive.components.StoryRunnerServiceComponent-1369225414834-0, serviceStoryClass=org.jbehave.osgi.examples.trader.it.embedder.TraderAnnotatedPathRunnerOsgi,
service.factoryPid=org.jbehave.osgi.interactive.components.StoryRunnerServiceComponent, service.id=61}
But when I tried to filter it using its properties I can't get the service:
osgi> services (serviceStoryClass=org.jbehave.osgi.examples.trader.it.embedder.TraderAnnotatedPathRunnerOsgi)
"No registered services."
Could someone point me what am I doing wrong ?
thanks
Cristiano
[Updated on: Wed, 22 May 2013 08:58] by Moderator
|
|
|
|
|
Re: services console command filter problem [message #1060045 is a reply to message #1060026] |
Wed, 22 May 2013 11:54  |
Eclipse User |
|
|
|
Hi Cristiano,
Yes, it supports LDAP filters. It's my mistake - I have overlooked that you have such a property and I thought at first that it should be objectClass.
You should place the filter in quotation marks. Try with osgi> services "(serviceStoryClass=org.jbehave.osgi.examples.trader.it.embedder.TraderAnnotatedPathRunnerOsgi)".
In the Gogo shell the brackets - ( and ) - have scripting semantics themselves, so since the filter contains them if the filter string is not escaped within quotation marks the shell interprets the brackets and the command method gets only part of the actual filter.
Lazar
[Updated on: Thu, 23 May 2013 01:59] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.05692 seconds