How can I integrate existing Spring beans into SwitchYard in FSW 6?

Solution Verified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.