How can I integrate existing Spring beans into SwitchYard in FSW 6?
Issue
- We are working on migration from existing Spring MVC beans into SwitchYard / Camel on Fuse Service Works. The Spring beans are defined in a few XML files.
- We created a SwitchYard project and implemented a SwitchYard service using Camel. There is a
routes.xml
created for routes. In the routes we need to reuse the existing Spring beans. - How do I link the Spring beans with Camel routes (
routes.xml
) and load these beans into Camel application context? Or do you recommend other approach to integrate Spring Beans into SwitchYard? - We are also trying to use
seam-spring-core.jar
, but got an exception:"JBAS014777: Services which failed to start: service ..."
. - Basically we have a Spring application with a lot of Spring beans. We are trying to run these Spring beans as CDI beans in SwitchYard with the help of
seam-spring-core.jar
. - Can you provide a sample on using
seam-spring-core.jar
on SwitchYard?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.