When I try to connect, I don't see any logging information on connecting to
the remote oracle AQ component.
This is what I get:
Consumer [EMAIL PROTECTED] of session
[EMAIL PROTECTED] did not receive a message
...
And the list goes on. It seems that my app keeps on polling the remote
Oracle AQ broker.
I am also wondering why when I am injecting to the JmsComponent do I refer
to the credentials bean for the connectionFactory property, even though
"credentials" is not a connectionFactory ?
And maybe I should be injecting into an OracleAQ component instead of a
JmsComponent ?
<bean id="credentials"
class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
<property name="targetConnectionFactory">
<ref bean="connectionFactoryOracleAQ"/>
</property>
<property name="username">
<value>awht</value>
</property>
<property name="password">
<value>awht</value>
</property>
</bean>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory" ref="credentials"/>
</bean>
James.Strachan wrote:
>
> 2008/10/8 selezovikj <[EMAIL PROTECTED]>:
>>
>> So, this should be my final version:
>>
>> <bean id="credentials"
>>
>> class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
>> <property name="targetConnectionFactory">
>> <ref bean="connectionFactoryOracleAQ"/>
>> </property>
>> <property name="username">
>> <value>USER</value>
>> </property>
>> <property name="password">
>> <value>PASS</value>
>> </property>
>> </bean>
>>
>> <bean id="jms2" class="org.apache.camel.component.jms.JmsComponent">
>> <property name="connectionFactory">
>> <inject bean="credentials"/>
>> </property>
>
> change the above to
>
> <property name="connectionFactory" ref="credentials"/>
>
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://open.iona.com
>
>
--
View this message in context:
http://www.nabble.com/Camel-and-Oracle-AQ-tp19860058s22882p19898307.html
Sent from the Camel - Users mailing list archive at Nabble.com.