Query : How to use Spring-DM powered OSGi bundle exposed as a webservice

281 views Asked by At

I've been working on a project to create OSGi bundles and expose them as a service. I've read enough on OSGi service and I must say I've fair idea on it. I've just come across the Spring-DM framework and having a quick look at its reference manual, I must say I'm very excited to use it as it provides fairly simple "declarative" way to expose bundle as a service.

However, I've not been able to figure out how can I expose my bundle as a "web-service" using Spring-DM.

I'd a look at the below link which shows how Apache-CXF can be used along with Spring-DM to expose bundle as a webservice:

http://cxf.apache.org/dosgi-spring-dm-demo-page.html

However, I could not understand the part where they have explained "endpoint-descriptions" tag part.

Can someone pls suggest/guide me on using Spring-DM to expose my bundle as a "web-service" ?

Many thanks in advance.

Best Regards LB

1

There are 1 answers

1
Christian Schneider On

Spring dm is kind of deprecated and is not maintained anymore. I propose to rather look into blueprint which is similar in syntax. You can use cxf dosgi or plain cxf. In DOSGi you simply publish an OSGi service with special properties. It is then exposed as a webservice. In plain cxf you define an endpoint in blueprint. The plain cxf way allows more control over the service but binds you directly to the cxf framework.

I have tutorials for both aproaches: