services console command filter problem [message #1059987] |
Wed, 22 May 2013 12:57 |
Cristiano Gavião Messages: 279 Registered: July 2009 |
Senior Member |
|
|
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 12:58] Report message to a moderator
|
|
|
|
|
Re: services console command filter problem [message #1060045 is a reply to message #1060026] |
Wed, 22 May 2013 15:54 |
Lazar Kirchev Messages: 30 Registered: July 2009 Location: Sofia, Bulgaria |
Member |
|
|
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 05:59] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02478 seconds