You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2019/12/12 20:00:33 UTC
[GitHub] [camel-k] RnD-John removed a comment on issue #1079: Example
Request: CamelJmsToFileExample.java
RnD-John removed a comment on issue #1079: Example Request: CamelJmsToFileExample.java
URL: https://github.com/apache/camel-k/issues/1079#issuecomment-565161244
I get the same/similar error simply trying to hard code the values:
@org.apache.camel.PropertyInject("test-jms")
private String component;
**Am I misinterpreting this:**
https://camel.apache.org/manual/latest/using-propertyplaceholder.html
It seems like this:
> public class MyRouteBuilder extends RouteBuilder {
>
> @PropertyInject("hello")
> private String greeting;
>
> @Override
> public void configure() throws Exception {
> from("direct:start")
> .transform().constant(greeting)
> .to("{{result}}");
> }
> }
puts "hello" in as the greeting.
While:
> @PropertyInject("Hello {{name}} how are you?")
> private String greeting;
will let me have name be a dynamic value...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services