Thanks, that was it, I guess my question was not really a Camel question but
rather a Spring question.

Here is what I did and this works

<beans xmlns="http://www.springframework.org/schema/beans";
xmlns:jee="http://www.springframework.org/schema/jee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:camel="http://camel.apache.org/schema/spring"; 
xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://camel.apache.org/schema/spring
        http://camel.apache.org/schema/spring/camel-spring.xsd
        http://www.springframework.org/schema/jee 
        http://www.springframework.org/schema/jee/spring-jee-3.2.xsd";>

    <jee:jndi-lookup id="myID" jndi-name="java:myDS"
expected-type="javax.sql.DataSource"/>

I do have one additional question:

I am going to delete rows and I want to get the count of deleted rows, the
following seems only to work with update 
            <log message="rows impacted: 
$simple{out.header.CamelJdbcUpdateCount}"/>

Is there a similar header property for rows deleted?
I guess I can do a select before and after but thoguht maybe there was a
cleaner way?





--
View this message in context: 
http://camel.465427.n5.nabble.com/JDBC-component-and-jboss-ds-xml-file-tp5750137p5750220.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to