How to emulate spring import feature with Blueprint ?

Solution Unverified - Updated -

Issue

  • Pre conversion to OSGi user had two jar files that use Camel and Spring, lets call them the container jar and the adapter jar.
  • Each one had resource directories with Spring XML files defining beans and the packages with the bean classes.
  • The idea is that that camel-context is in the adapter jar and pulls in bean definitions from both the adapter jar and the container jar.
  • Conversion to OSGI using Spring resolved all the XMLs files by using <import> to pull in the files on the imported packages. It worked, although very messy and not using any of the OSGi capabilities, like services.
  • How to mimic the behavior of the Spring <import> command in Blueprint?

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

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.