camel-jdbc support in Fuse on EAP

Solution Verified - Updated -

Issue

  • We are working on a simple camel project and we need to deploy it on JBoss Fuse 6.2.1 installed over JBoss EAP 6.4.0.
    Bellow is our snippet:
@Startup
@ApplicationScoped
@ContextName("jms-cdi-context")
public class JmsRouteBuilder extends RouteBuilder {

    @Override
    public void configure() throws Exception {      
        from("scheduler://foo?delay=1s")
            .log("Timer executed")
            .setBody(new SimpleBuilder("select * from testtable"))
            .log("Body is now: ${body}")
            .to("jdbc:java:jboss/datasources/ExampleDS")
            .log("After going to database: ${body}");
  • Basically we want to go to the database to fetch some data every second.
    After we deploy this application to JBoss Fuse we are getting an error:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: jdbc://java:jboss/datasources/ExampleDS due to: No component found with scheme: jdbc

Any idea on how we can solve this?

Environment

  • Red Hat JBoss Enterprise Application (EAP)
    • 6.4.x
    • Fuse on EAP
  • Red Hat JBoss Fuse

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content