Custom processor in the camel route #1231
-
Custom processor in the camel routeHow can I refer a custom processor in the camel route. The catch is that custom processor resides in a separate dependency. Here is the route configuration In the application.properties , the dependency of the jar where SimpleProcessor resides is listed SimpleProcessor is defined in the project org.study:simple:1.0 as follows and the beans.xml is added in the project org.study:simple:1.0 in the resouces/META-INF folder for beans discovery During the build phase, when jbang export (jbang -Dcamel.jbang.version=4.3.0 camel@apache/camel export) is happening im getting the below error
VariantWeb Application Container Management (if applicable)Kubernetes Operating System (if applicable)Linux Version4.4.0 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
karavan is not a java ee app server and you cannot have XML files inside JARs for bean discovery and whatnot. You can refer to the class by FQN classname for example, or configure it as a bean
See for example karavan.space, where you can define beans |
Beta Was this translation helpful? Give feedback.
Try with never versions of camel karavan such as 4.5 or when 4.6 is released later this month