Hi I write my custom camel component and it is working until I upgrade the version. I uprade my version 3.1 to 3.2 but I got error
Resolved [org.apache.camel.NoSuchEndpointException: No endpoint could be found for: my-rest-client, please check your classpath contains the needed Camel component jar.]
I check to camel documentation but not understand clearly.
https://camel.apache.org/manual/latest/camel-3x-upgrade-guide-3_2.html
I try something but nothing change This is not working
//camelContext.getRestConfiguration("servlet",true); 3.1 code deleted to upgrade 3.2
CamelContextHelper.getRestConfiguration(camelContext,"servlet"); 3.2
I try to add camel-http,camel-direct to my pom but no effected.
Component("MYClientEndpoint")
@UriEndpoint(scheme = "my-rest-client",title = "my-rest-client",syntax = "my-rest-client")
public class MYClientEndpoint extends DefaultEndpoint {
@Autowired
private MYClientProducer MYClientProducer;
@Override
public Producer createProducer() {
return MYClientProducer;
}
@Override
public Consumer createConsumer(Processor processor) {
throw new UnsupportedOperationException("Operation not supported");
}
@Override
public boolean isSingleton() {
return true;
}
@Override
public String getEndpointUri() {
return "my-rest-client";
}
}
It can exist in my application context already.I can access when Autowired it