Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Integration and OSGI

 
Clemente Marina
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone ... any ideas about how the spring integration works with OSGI , i've seen that there were some samples included in the earliest versions but not anymore ... and there is not too many docs about it ...

 
Iwein Fuld
Author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done some of the early work on the combination. In my personal view it is a very promising architecture, but there are very few practical use cases for it. Separating services through e.g. REST is usually more robust and the performance downside is not problematic.

That said, getting it to work isn't hard. The old tricks of exposing a channel as an osgi service, or wrapping a service-activator around an osgi service will still work. http://blog.springsource.org/2009/02/27/spring-integration-on-dm-server/

Could you describe your architecture and explain why you think using SI + OSGi makes sense for you?
 
Clemente Marina
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , thanks for replying.

We're using the SI to process the RestMessages and in a future add also a Ws.inbound endpoints ... the OSGI stuff make sense because we're having a lot of different modules with different clients in each of them so we need to be able not redeploying everythin each time one of them need to change something ...


Now i've been able to configure the eviroment , and my bundles ( my example module , the wab app and the http bridge , along with all the spring integration bundles ) are up and runnning ...

Now my porblem is how to send the rest rquest through http ... i mean , i used to make it work usign a DispatcherServlet in the web.xml but now i have the httpsBridge proxyServlet and no idea about how to configure my servlets ... i'm really anewbie in this eviroment actually and maybe i'm missign something , i'll keep trying

thanks!
 
Iwein Fuld
Author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clemente Marina wrote:... my porblem is how to send the rest rquest through http ... i mean , i used to make it work usign a DispatcherServlet in the web.xml but now i have the httpsBridge proxyServlet and no idea about how to configure my servlets ... i'm really anewbie in this eviroment actually and maybe i'm missign something , i'll keep trying


I think the samples also contain an example of sending and receiving over http. Maybe you could start with that and integrate it in your own app?
 
Clemente Marina
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thsanks for the response ...

but i think i didn't explain myself ... using spring integration i was indeed able to meke it work , now i'm dealing with porblems while make my modules turn into bundles ... actually is not an SI issue look more like a gemini blueprint one ( how to register the servlets) ...

thanks a lot anyway
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic