camel-jdbc support in Fuse on EAP
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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
