Hi,
I'm trying to configure a queue channel with the mongodb outbound-channel-adapter this way:
But I'm getting this xsd validation error:Code:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xmlns:int-mongodb="http://www.springframework.org/schema/integration/mongodb" xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration-2.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/integration/mongodb http://www.springframework.org/schema/integration/mongodb/spring-integration-mongodb-2.2.xsd"> <int:channel id="entriesChannel" > <int:queue/> </int:channel> <int-mongodb:outbound-channel-adapter id="deafultAdapter" channel="entriesChannel" collection-name="entry" mongo-template="mongoTemplate" /> </beans>
Everything else is configured via java annotations (i.e. mongo configuration) because I was not able to find how to configure integration with java annotations and I'm loading this xml through:Code:Referenced file contains errors (http://www.springframework.org/schema/integration/spring-integration-2.2.xsd). For more information, right click on the message in the Problems View and select "Show Details..."
What am I doing wrong?Code:@Configuration @ImportResource("classpath:some/folder/integration.xml") public class IntegrationConfig { }
Is there any way to configure integration with java annotations?
Thanks!


Reply With Quote

...I thought spring-integration-core maven dependency will import everything else so I had not added spring-integration-mongodb...everything is working now, sry 