Hello, I’m trying to test an inbound connector using Spring Boot, but I’m encountering this error:
"Only “prototype” scope is supported for inbound connectors, but found “singleton” for the bean: "
If I use the @Scope
annotation with the value “prototype,” Spring does not recognize the connector.
What can I do to fix this?
Hey @some_developer, here is an example test-case on how to setup an inbound connector with Spring: https://github.com/camunda/connectors/blob/de19afa37650bd1bbaa3bd2caeaa9fcb3de2fc79/connector-runtime/spring-boot-starter-camunda-connectors/src/test/java/io/camunda/connector/runtime/inbound/SpringBasedInboundConnectorTest.java
And please keep in mind that you should remove the META-INF/services
directory when using Spring for now.
You mention that Spring does not recognize the Connector. How does your project structure look like?
I hadn’t placed it in the META-INF, so it went wrong. I managed to fix it.
system
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.