<bean class="org.axonframework.commandhandling.gateway.CommandGatewayFactoryBean"> <property name="commandBus" ref="commandBus"/> <property name="gatewayInterface" value="my.CustomGateway"/> </bean>
@Autowired private CustomGateway gateway;
2016-09-05 12:20:52.934 WARN 6928 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'instanceService': Unsatisfied dependency expressed through field 'gateway': No qualifying bean of type [my.CustomGateway] is defined: expected single matching bean but found 2: org.axonframework.commandhandling.gateway.CommandGatewayFactoryBean#0,customGateway; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [eu.europa.ec.ccf.eckl.service.common.CustomGateway] is defined: expected single matching bean but found 2: org.axonframework.commandhandling.gateway.CommandGatewayFactoryBean#0,customGateway
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.