Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » R-OSGi over Virgo(How configure R-OSGi Over Virgo Server)
R-OSGi over Virgo [message #585244] Tue, 21 September 2010 17:47
facundo rodriguez is currently offline facundo rodriguez
Messages: 5
Registered: September 2010
Location: argentina
Junior Member

Hi Everybody!

I'm almost new in Virgo, and i have to migrate a very large OSGi project from Equinox to this server.
Everything was going well until connect R-OSGi with Virgo. Here problems show up.

We use R-OSGi to publish a service that save session data between web applications and this service don't work in Virgo, i did all the steps that are described in R-OSGi documentation and the code worked fine in Equinox.

The steps i follow to install R-OSGi were:

i) set the bundle of R-OSGi (ch.ethz.iks.r_osgi.remote_1.0.0.RC4_v20091012-1618.jar) in /repository/usr
ii) the configuration assigned is:

	private static final String REMOTE_LOCATION = "r-osgi://localhost";
	private static final String PORT = ":9279";



A NullPointerException arrise when i get reference to r-osgi services

        serviceRef = bundleC.getServiceReference(RemoteOSGiService.class.getName());


The service registration work fine, without errors

   final Hashtable properties = new Hashtable();
        properties.put(RemoteOSGiService.R_OSGi_REGISTRATION, Boolean.TRUE);
        serviceRegistration = bundleC.registerService(ISharedSession.class.getName(), new SharedSession(), properties);


It's necesary start up the R-OSGi bunde (ch.ethz.iks.r_osgi.remote)in Virgo? or only with import the packages it should work?

Any help will be very appreciated,

Thanks in advance,
Previous Topic:Configuration bundles for ManagedServiceFactory
Next Topic:Unable to debug OSGi modules on Virgo in Eclipse
Goto Forum:
  


Current Time: Mon Oct 20 13:24:33 GMT 2014

Powered by FUDForum. Page generated in 0.01575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software