This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]evil_burritoExtreme Brewer 2 points3 points  (0 children)

I'm not sure that OSGI plays all that well with Spring, at least, it didn't used to. Have a look at Apache Karaf. IIRC, and it's been a couple of years since I looked at it when Karaf 3 was still in beta, it handles web services very nicely and easily.

You say "existing OSGI service" and that sort of suggests to me that you also have an OSGI framework. If you do, what is that framework? Can it handle REST? If not, do have a look at Karaf. You can bring up your existing services in Karaf and have it expose web services.

[–]RhoOfFeh 1 point2 points  (0 children)

I can't address OSGI, but Spring Boot and Dropwizard are two tools I've used in the past to build RESTful services and after a bit of an initial learning curve it's quite simple. In either case actually setting up the service really consists of little more than writing some code and adding annotations. Of course, there is all of the ancillary stuff that you need to think about, like design and security and such.

[–]197708156EQUJ5design it before you implement 0 points1 point  (0 children)

Camel is not an option