Jan 25th, 2012, 09:13 AM
Spring Integration as ESB
What are the ways to deploy my spring integration sample application so that it behaves like an ESB. I have read about spring integration being used as a light weight alternative to ESBs like Servicemix. Its mentioned that servicemix is just a name now (ESB) while most of the components are using Camel (as JBI is outdated).
Jan 25th, 2012, 09:18 AM
When you say ESB I am assuming you mean a server container with EIP components. Right?
If so, than Spring Integration application is no different than any other Spring Application (e.g., SpringMVC etc.). Once Spring Application Context with configured EIP components (e.g., adapters such as HTTP, FTP, TCP etc., , filters, routers etc.) deployed on the Server of your choice (Tomcat, Jetty, WAS etc.) that's pretty much it. You've essentially crated a custom ESB which only has EIP components that you need.
Jan 25th, 2012, 09:38 AM
Thanks for your reply.
But how do I load spring application context if I want multiple contexts to be loaded? (different jars or modules)
Jan 25th, 2012, 09:42 AM
No different than any other Spring Application.
Perhaps you want to provide more details about your server environment. . . are you deploying it as WAR or is it standalone (what runtime??)
Jan 25th, 2012, 10:32 AM
Looking to deploy as standalone... I want different service units to be deployed that communicate using JMS queues or topics. They will be having different application contexts as they are referring to individual Databases.
Jan 25th, 2012, 03:04 PM
Well, if you are looking for standalone, than you can look at any of the test cases within the framework or many Spring integration samples available here: https://github.com/SpringSource/spri...ration-samples
With the exception of web-based samples they are all standalone deployments.