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/11/25 15:33:24 UTC

[GitHub] [camel-k] davesargrad commented on issue #1079: Example Request: CamelJmsToFileExample.java

davesargrad commented on issue #1079: Example Request: CamelJmsToFileExample.java
URL: https://github.com/apache/camel-k/issues/1079#issuecomment-558208146
 
 
   Hi @RnD-John 
   
   I've tried to create one myself, since I have been trying to understand how dependencies are on packages such as org.apache.camel.component.jms are included.
   
   The sample I've tried is just to take the camel-k Sample.java and to begin to import packages that relate to your JMS interest.
   
   Using the following code, I see the sample pod fail to run properly
   
   `import org.apache.camel.builder.RouteBuilder;
   import org.apache.camel.CamelContext;
   import org.apache.camel.ProducerTemplate;
   import org.apache.camel.component.jms.JmsComponent;
   
   public class Sample extends RouteBuilder {
     @Override
     public void configure() throws Exception {
   	  from("timer:tick")
         .log("Hello Camel K!");
     }
   }
   `
   
   The error I see in the POD log follows
   
   ![image](https://user-images.githubusercontent.com/48793689/69553926-fa658d80-0f6e-11ea-93ae-5724dc6e6da7.png)
   
   

----------------------------------------------------------------
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