{"action":"created","issue":{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/705","labels_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/705/comments","events_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/705/events","html_url":"https://github.com/wildfly-extras/wildfly-camel/issues/705","id":87804263,"number":705,"title":"Unable to use DataSource defined in WildFly","user":{"login":"simasch","id":593352,"avatar_url":"https://avatars.githubusercontent.com/u/593352?v=3","gravatar_id":"","url":"https://api.github.com/users/simasch","html_url":"https://github.com/simasch","followers_url":"https://api.github.com/users/simasch/followers","following_url":"https://api.github.com/users/simasch/following{/other_user}","gists_url":"https://api.github.com/users/simasch/gists{/gist_id}","starred_url":"https://api.github.com/users/simasch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simasch/subscriptions","organizations_url":"https://api.github.com/users/simasch/orgs","repos_url":"https://api.github.com/users/simasch/repos","events_url":"https://api.github.com/users/simasch/events{/privacy}","received_events_url":"https://api.github.com/users/simasch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T17:53:34Z","updated_at":"2015-06-12T19:03:31Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to use camel-sql as described in the wiki book but it seams that camel is not looking in the JNDI context for the data source. I get\r\n\r\norg.apache.camel.NoSuchBeanException: No bean could be found in the registry for: java:jboss/datasources/prolixpro of type: javax.sql.DataSource\r\n\r\nThe root looks like this\r\n\r\n.to(\"sql:\" + SELECT + \"?dataSource=java:jboss/datasources/prolixpro\")\r\n\r\nWhat is wrong?\r\n\r\nThanks, Simon\r\n"},"comment":{"url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/comments/111589858","html_url":"https://github.com/wildfly-extras/wildfly-camel/issues/705#issuecomment-111589858","issue_url":"https://api.github.com/repos/wildfly-extras/wildfly-camel/issues/705","id":111589858,"user":{"login":"jamesnetherton","id":4721408,"avatar_url":"https://avatars.githubusercontent.com/u/4721408?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesnetherton","html_url":"https://github.com/jamesnetherton","followers_url":"https://api.github.com/users/jamesnetherton/followers","following_url":"https://api.github.com/users/jamesnetherton/following{/other_user}","gists_url":"https://api.github.com/users/jamesnetherton/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesnetherton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesnetherton/subscriptions","organizations_url":"https://api.github.com/users/jamesnetherton/orgs","repos_url":"https://api.github.com/users/jamesnetherton/repos","events_url":"https://api.github.com/users/jamesnetherton/events{/privacy}","received_events_url":"https://api.github.com/users/jamesnetherton/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T19:03:31Z","updated_at":"2015-06-12T19:03:31Z","body":"Hi,\r\n\r\nThis looks like a bug. Seems to work fine in our [integration test](https://github.com/wildfly-extras/wildfly-camel/blob/master/itests/standalone/src/main/java/org/wildfly/camel/test/sql/SQLIntegrationTest.java). But when I deployed an SQL route as a standalone war deployment, I hit the same problem as you describe.\r\n\r\nI'll investigate further."}}