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,