Giter Club home page Giter Club logo

Comments (5)

tadayosi avatar tadayosi commented on May 28, 2024

Hi @HARSHITHARSH, thanks for the reporting.

I tested the same setup at my end, but couldn't reproduce the issue. Hawtio works just fine with 2 app routes & 1 route from an external jar.

I used the following route in a jar:

package com.example.hello;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class Hello extends RouteBuilder {

    @Override
    public void configure() throws Exception {

        // Write your routes here, for example:
        from("timer:java?period={{time:1000}}")
            .setBody()
                .simple("Hello Camel from ${routeId}")
            .log("${body}");
    }
}

then using the example project springboot imported the above project com.example:hello:1.0.0 and loaded the component from the startup application as follows:

@SpringBootApplication(scanBasePackages = {"io.hawt.example.spring.boot", "com.example"})
public class SampleSpringBootService {

So, maybe it's related to the way you build the jar and import it into the main app. Can you provide us with a reproducer?

from hawtio.

HARSHITHARSH avatar HARSHITHARSH commented on May 28, 2024

Can we try with spring dsl routes in both application and jar.

from hawtio.

tadayosi avatar tadayosi commented on May 28, 2024

@HARSHITHARSH What does "spring dsl routes" mean? Does it mean Spring XML DSL routes?

from hawtio.

HARSHITHARSH avatar HARSHITHARSH commented on May 28, 2024

Yes sir.

from hawtio.

tadayosi avatar tadayosi commented on May 28, 2024

@HARSHITHARSH Tried Spring XML DSL but nothing has changed. It works.

I suspect it's related to the way you've made the JAR. Can you show us the output of the following command?

$ jar -tf <name-of-the-jar>.jar

from hawtio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.