gtata007 commented on issue #3971:
URL: https://github.com/apache/camel-k/issues/3971#issuecomment-1593983738

   Thank you @gansheer for your inputs.
   
   I am trying to run a sample java dsl program by adding the xj plugin in the 
command line argument but the pod is running into errors. Do you have any 
inputs on this? Below is the piece of code and the run command i am trying to 
execute.
   
    D:\CamelKWorkspace\Xml2JsonSample> kamel run -d camel:camel-xj 
TextXmlJson.java --dev -t logging.level=DEBUG
   
   // camel-k: language=java
   
   import org.apache.camel.builder.RouteBuilder;
   
   public class TextXmlJson extends RouteBuilder {
     @Override
     public void configure() throws Exception {
   
         // Write your routes here, for example:
         from("timer:java?period=1000")
           .routeId("java")
           .setBody()
             .simple("Hello Camel K from ${routeId}")
           .to("log:info");
   
     }
   }
   
   
   


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to