If I don't use datasource and specify like this:

<bean id="connectionFactoryOracleAQQueue" class="oracle.jms.AQjmsFactory"
                factory-method="getQueueConnectionFactory">
                <constructor-arg index="0">
                
<value>jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=mydb)))</value>
                </constructor-arg>
                <constructor-arg index="1" type="java.util.Properties">
                        <value></value>
                </constructor-arg>
        </bean>

        <bean id="oracleQueueCredentials"
        
class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
                <property name="targetConnectionFactory">
                        <ref bean="connectionFactoryOracleAQQueue" />
                </property>
                <property name="username">
                        <value>db</value>
                </property>
                <property name="password">
                        <value>password</value>
                </property>
        </bean>

        <bean id="oracleQueue" 
class="org.apache.camel.component.jms.JmsComponent">
                <property name="connectionFactory" ref="oracleQueueCredentials" 
/>
        </bean>

Then it works, but I have a restriction, that I have to use datasource. Any
ideas?



--
View this message in context: 
http://camel.465427.n5.nabble.com/oracle-jms-AQjmsFactory-and-javax-sql-DataSource-tp5729223p5729471.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to