Details
Description
When Spring Integration jars are located in main /lib ClassLoader and our war has its one, and we have configuration:
<map-to-object-transformer type="com.my.proj.model.SomeModel"/>
we end-up with ClassNotFoundException.
To change it to:
builder.getBeanDefinition().getConstructorArgumentValues().addGenericArgumentValue(type, "java.lang.Class");
instead of ClassUtils#resolveClassName fixing the problem and in the end we rely on the magic of ConversionService from context on MapToObjectTransformer bean instantiation.
As a workaround configure prototype bean of our model:
<map-to-object-transformer ref="myModel"/> <bean id="myModel" class="com.my.proj.model.SomeModel" scope="prototype"/>
Unfortunately I don't know how to reproduce it as test-case, but it really works on JBOSS.
Attachments
Issue Links
- relates to
-
INT-2928 Eliminate Default Fall-back to 'conversionService' from Application Context
-
- Closed
-