camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a746076drdrb <a746...@drdrb.net>
Subject Re: camel-cdi projects as fat jar
Date Tue, 30 Aug 2016 08:23:11 GMT
Used maven-shade-plugin version 1.7.1

import javax.inject.Inject;

import org.apache.camel.Endpoint;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.cdi.Uri;

public class MyRoutes extends RouteBuilder {

    @Inject
    @Uri("timer:foo?period=5000")
    private Endpoint inputEndpoint;

    @Inject
    @Uri("log:output")
    private Endpoint resultEndpoint;

    @Inject
    private SomeBean someBean;

    @Override
    public void configure() {
        from(inputEndpoint)
            .bean(someBean)
            .to(resultEndpoint);
    }

}



--
View this message in context: http://camel.465427.n5.nabble.com/camel-cdi-projects-as-fat-jar-tp5786762p5786980.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message