| Adding a custom command via gogo in Virgo 3 [message #816703] |
Fri, 09 March 2012 01:58  |
Sathyakumar Seshachalam Messages: 4 Registered: March 2012 |
Junior Member |
|
|
Hi,
I am trying to create my own custom command that can be run from the gogo shell. I tried exposing a service with osgi.command.scope and osgi.command.function properties, but these are not picked by felix gogo bundles.
I assume it is because these these bundles are in kernel and not userregion. I trying importing them to no avail. Then tried copying them to pikcup folder. Shell wont even open. Want to know if this is possible at all. (Providing a custom command).
PS: Am new to Virgo
Regards
Sathya
|
|
|
|
| Re: Adding a custom command via gogo in Virgo 3 [message #816781 is a reply to message #816708] |
Fri, 09 March 2012 03:52   |
Sathyakumar Seshachalam Messages: 4 Registered: March 2012 |
Junior Member |
|
|
Hello Lazar,
Thanks for the reply. I did create a bundle(spring powered) that exposed a service with the properties that you'd mentioned. I have verified that service is indeed exposed with these properties when deployed. Yet I only get a "CommandNotFound" in the shell. My bundles are actually defined as part of a plan and bundle itself is placed in /repository/usr
Note that I've tested the same bundle using plain equinox (via pax-runner) with felix gogo bundles installed and have found them working there. Only seems to fail in Virgo.
I also did this - set a break point in org.apache.felix.gogo.runtime.Activator that I presume does the actual stuff behind the scenes and remote debugged virgo. I found a couple of hits for the kernel services, but my own bundle's services was never trapped by this Activator's ServiceTracker.
Regards
Sathya
[Updated on: Fri, 09 March 2012 04:28] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01668 seconds