I'm testing the 2.1-SNAPSHOT OSGi edition in OSGi environment I looked into the planned roadmap and I see there is an upcoming release in a month. I started to test the SNAPSHOT version and I can report back some problems if we find one.
There is one big blocking bug https://github.com/restlet/restlet-framework-java/issues/14 so if you could fix that I can distribute my test code and we may find some more bug before the release. Additionally I have other proposal. I'm looking for a way to use the Directory and CLAP This works well in non OSGi environment root.attach("/resources", new Directory(childContext, "clap:///resources")); I have tho use custom class ClassLoader because none of these can load my resources. class: the resources will be resolved from the classloader associated with the local class. system: the resources will be resolved from the system's classloader. thread: the resources will be resolved from the current thread's classloader. There would be a convenient way but the method is private. Could you change it to protected so then I can use my own class to load the resource. import org.restlet.Request; import org.restlet.Response; import org.restlet.data.Method; import org.restlet.engine.local.DirectoryServerResource; public class ClassDirectoryServerResource extends DirectoryServerResource { /** * Returns a representation of the resource at the target URI. Leverages the * client dispatcher of the parent directory's context. * * @param resourceUri The URI of the target resource. * @return A response with the representation if success. */ private Response getRepresentation(String resourceUri) { Request request = new Request(Method.GET, resourceUri); request.getAttributes().put("org.restlet.clap.classLoader", ClassDirectoryServerResource.class.getClassLoader()); return getClientDispatcher().handle(request); } } I think for the future the OSGi extension may have some bundle client protocol beyond the simple CLAP. Thank you in advance, Laszlo ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2931506

