This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Spring and the fly likes Spring Integration and OSGI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Integration and OSGI" Watch "Spring Integration and OSGI" New topic
Author

Spring Integration and OSGI

Clemente Marina
Greenhorn

Joined: Oct 31, 2012
Posts: 4
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

Joined: Nov 01, 2012
Posts: 14
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

Joined: Oct 31, 2012
Posts: 4
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

Joined: Nov 01, 2012
Posts: 14
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

Joined: Oct 31, 2012
Posts: 4
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring Integration and OSGI