Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Using Spring Annotations in a Custom Service Component


Level 1

I am trying to use Spring Annotations in a custom component, but my beans with annotations are not found.  I am define a service factory class in my component.xml wich extends

<component xmlns="">










In the getBeanFactory method I create an org.springframework.context.annotation.AnnotationConfigApplicationContext and set the base package and scan.  The problem is none of my bean are in the the returned  bean factory.  I have tried setting the classloader to the ServiceConfiguration classloader but that did not help either.

Does anyone know to do this?



0 Replies