hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

Default path does not get updated #157

Open madhugarimilla opened 8 years ago

madhugarimilla commented 8 years ago

I was trying to provide the root like this inside start method of Activator class. Did i miss something? my services are still available under /services.

ServiceReference<?> reference = context.getServiceReference(ConfigurationAdmin.class.getName() ); ConfigurationAdmin configAdmin = ( ConfigurationAdmin )context.getService( reference ); Configuration configuration = configAdmin.getConfiguration("com.eclipsesource.jaxrs.connector", null ); Dictionary<String, Object> properties = configuration.getProperties(); properties.put( "root", "/rest/v1" ); configuration.update(); context.ungetService( reference );

BryanHunt commented 7 years ago

You need to call configuration.update(properties) instead of configuration.update().

erdalkaraca commented 7 years ago

@BryanHunt I have the same problem. I also tried update(properties).

com.eclipsesource.jaxrs.publisher.internal.Configuration.updated(Dictionary) is called with a null Dictionary. I have Eclipse Neon as target platform. Any other hints? Thanks.

BryanHunt commented 7 years ago

If configuration.update(properties) is not working, then it's time to bust out the debugger.