doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651809029
What I am trying to do is have a working application using Camel K. I have
managed to do a Java only application. What I would now want to do is rewrite
the Camel integration in
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651400948
`MyProcessor` as a class is defined in the `MyConfigurer.java` file which I
pass to kamel run.
This is an
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651378474
It looks like at the time of binding the bean to the registry MyProcessor
class is not found.
This is an automated
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651326271
Does MyProcessor require any annotation as `@Component` or something like
that?
Now that I have no more compilation errors I get:
```
[1] 2020-06-29 19:43:16.722
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651321610
I see, for now I just put all the classes into the file containing
MyConfigurer and that seems to have been fine although not an ideal solution.
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651306518
I am extremely close to getting this to work.
A quick question: MyProcessor class uses other classes, defined in separate
files. How do I tell kamel about those dependencies?
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651288277
The `--name` fixed it :) Thanks.
This is an automated message from the Apache Git Service.
To respond to the
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651273188
Thank you for the detailed explanation. I'm working on getting it work right
now.
A small issue occurs when I try to run this command:
```
kamel run
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651134532
> The current implementation only accept a reference to a Processor stored
in the registry so to reference a class you should use the bean dsl,
What's the YAML side code for
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-651127032
So you mean doing something like this:
```
kamel run --property camel.beans.myProcessor=#class:com.foo.MyProcessor
```
?
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650805380
Note to the above comment: I am doing this in an all Camel example and I was
able to get it to work by **not** using the `@BindToRegistry` annotation but by
doing this:
```
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650801582
I did that and then added this to my route:
```
.to("bean:MyProcessor")
```
I got an error saying:
```
No bean could be found in the registry for:
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650671589
Do you have an example of how this can be done using YAML? What's unclear to
me is how this method:
```
bindBeans(camelContext.getRegistry());
```
can be called
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650324660
What is the approximate timeline for the next release?
This is an automated message from the Apache Git Service.
To
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650323903
Got it. That's helpful to know!
This is an automated message from the Apache Git Service.
To respond to the
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650322514
In other words, what would be the correct syntax for passing a processor
class to the process step.
This is an
doru1004 commented on issue #1579:
URL: https://github.com/apache/camel-k/issues/1579#issuecomment-650320236
Just to make sure I understand, is there no yaml way in which I could
specify a custom processor? The yaml code I wrote there my be wrong, in
particular this part:
```
-
17 matches
Mail list logo