ECF Run-As OSGi Framework [message #639274] |
Mon, 15 November 2010 20:53 |
|
I was curious as to why running an Eclipse Communication Framework project as an OSGi Framework gives no console output? I've been playing around with ECF for about a month now with no real progress. I only recently found out that to see console output, the project needed to be run as an Eclipse application rather then OSGi Framework. Why is this?
Also, when running as an Eclipse application, if the Host application is stopped, and then started again, no registration message is printed to the console again. It seems to me that everytime the service is started, it'd notify the console of registration.
|
|
|
|
Re: ECF Run-As OSGi Framework [message #639504 is a reply to message #639332] |
Tue, 16 November 2010 18:53 |
|
The -consoleLog -console are already in my launch configuration. Here's the steps I took from beginning to end.
Download Helios 3.6.1
Install ECF 3.4
Create a new OSGi Framework launch configuration
Select org.eclipse.ecf.examples.remoteservices.hello.host
Add Required Bundles
Apply
Run
This is my Program Arguments:
-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -console
This is my VM arguments
-Declipse.ignoreApp=true -Dosgi.noShutdown=true
The only output on the console is the OSGi input:
osgi>
|
|
|
|
Re: ECF Run-As OSGi Framework [message #639539 is a reply to message #639525] |
Tue, 16 November 2010 20:17 |
|
That answers a lot of questions. I'm still not getting any output when using any combination of those providers and discoverers, but I get why the output wasn't being created when run as an OSGi framework vs an Eclipse Application.
As for what I'm trying to do. Right now I'm just trying to get a working example so that I can play around with it before moving on to more complex items. My network right now is just a typical wifi network. I don't care if it's a local remote connection, or a over the network one.
|
|
|
|
Re: ECF Run-As OSGi Framework [message #639807 is a reply to message #639549] |
Wed, 17 November 2010 21:30 |
|
Thanks for pointing me back to that page Scott. I'd read over it a couple times but it made me pull the code back up and realize that I was making a very simple mistake.
When I was trying to run the examples as an OSGi Framework, I didn't realize that the plug-in activator wasn't calling any of the code inside the bundle. However, when I run it as an Eclipse application, the default or selected product would be loaded and run. Moving this code over to the Activator, ran the code examples perfectly as an OSGi Framework launch.
Thanks for the help!
|
|
|
Powered by
FUDForum. Page generated in 0.04104 seconds