[#ftl]
    <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource">
        <property name="url" value="[=properties.dataSourceUrl]"/>
        <property name="driverClassName" value="[=properties.dataSourceClass]"/>
        <property name="username" value="[=properties.dataSourceUsername!]"/>
        <property name="password" value="[=properties.dataSourcePassword!]"/>
    </bean>

    <bean id="[=objectId]" class="org.apache.camel.component.jdbc.JdbcComponent">
        [=utils.createBeanProperties(properties, "camel_", true)]
        <property name="dataSource" ref="dataSource"/>
    </bean>
