Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ecf-dev] New tutorial: Creating a RESTful remote service provider

On 12/11/2013 06:40 AM, Scott Lewis wrote:
> I've gone on to create another remote services tutorial, this time
> focusing on the much more advanced topic of how to create a custom
> remote service distribution provider [1].

- Rather than getting the HttpService explicitly, I find it much more
convenient to use the Whiteboard pattern to register and de-register a
javax.servlet.Servlet via DS and have it automatically be wired up by
org.apache.felix.http.whiteboard (see for example [1])

Unfortunately I expect that DS combined with EPs will cause
initialization problems and start-order brittleness. Shouldn't it be
easily possible to extend ECF core to also lookup containerFactory and
namespace in the OSGi service registry?

- The Java service API (ITimeService) and the REST interface map 1:1 on
each other. I'm not sure if the tutorial should explore more advanced
cases where one wants to use a mapping, e.g. like I did for my
greenhouse [2].

M.

[1] http://www.lemmster.de/blog/index.php/2013/12/11/1496
[2]
https://github.com/lemmy/greenhouse/blob/master/org.eclipse.ecf.examples.greenhouse.consumer.ext/src/org/eclipse/ecf/examples/greenhouse/internal/consumer/TelemetryTypeAdapter.java


Back to the top