spring - How to provide a property Bean to a Java Component in Mule Studio? -
in mule studio 3.5, directly in xml , in flow, have following declaration :
<component class="fr.esb.bo.generatereportfilecomponent" doc:name="boreport"> <spring:property name="boservices" ref="boservices"/> </component>
when launch mule this, following error
org.xml.sax.saxparseexception: cvc-complex-type.2.4.a: invalid content found starting element 'spring:property'. 1 of '{"http://www.mulesoft.org/schema/mule/core":annotations, "http://www.mulesoft.org/schema/mule/core":abstract-interceptor, "http://www.mulesoft.org/schema/mule/core":interceptor-stack, "http://www.mulesoft.org/schema/mule/core":abstract-entry-point-resolver-set, "http://www.mulesoft.org/schema/mule/core":abstract-entry-point-resolver, "http://www.mulesoft.org/schema/mule/core":abstract-object-factory, "http://www.mulesoft.org/schema/mule/core":abstract-lifecycle-adapter-factory, "http://www.mulesoft.org/schema/mule/core":binding}' expected.
i understand that, how can provide boservices bean component ? custom-transformer, working well.
define class spring bean:
<spring:beans> <spring:bean id="restaurantwaiter" scope="prototype" class="com.foo.restaurantwaiter"> <spring:property name="kitchenservice"> <spring:ref local="kitchenservice"/> </spring:property> </spring:bean> </spring:beans> <component> <spring-object bean="restaurantwaiter"/> </component>
as explained here.
Comments
Post a Comment