This content has been marked as final.
Show 2 replies
-
1. Re: SwitchYard database connection
kcbabo Feb 18, 2013 6:55 PM (in response to jmalpica)Welcome! Go with the SQL Gateway. You could also use the JPA Gateway if you want to use JPA to map from the database into a domain object. The camel-sql-binding and camel-jpa-binding quickstarts demonstrate use of a service binding to pull data from a database. One thing to note on both quickstarts is that there is a "dummy" service binding which feeds test data for the real service to then pull in.
-
2. Re: SwitchYard database connection
splatch Feb 19, 2013 4:23 AM (in response to kcbabo)As Keith already pointed usage of databases in SwitchYard can be done with JPA and SQL gateway. Second is darn easy in configuration. You just need to provide query and reference to datasource using jndi path (eg java:jboss/datasources/GreetDS).