I would like to know if its possible to set the Oracle AQ dequeue options for
a topic (multiconsumer queue). 

I'm trying to set the following in the Camel Spring XML config:
AQDequeueOptions deqopt = new AQDequeueOptions();
deqopt.setRetrieveMessageId(true);
deqopt.setConsumerName(consumerName);

I have the following setup already:
 <bean id="topicConnectionFactory" class="oracle.jms.AQjmsFactory"
factory-method="getTopicConnectionFactory">
        <constructor-arg index="0" value="${topic.db.url}" />
        <constructor-arg index="1" type="java.util.Properties" value="" />
    </bean>

<bean id="authenticatedTopicConnectionFactory"
class="org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter">
        <property name="targetConnectionFactory"
ref="topicConnectionFactory" />
        <property name="username" value="${topic.dbusername}" />
        <property name="password" value="${topic.db.password}" />
    </bean>

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


This works and makes the connection to a topic and you can receive messages
from the topic HOWEVER its not possible to get those messages that where
sent before you started subscribing. (those messages that were meant for
your consumption). 

-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Oracle-AQ-Topic-dequeue-options-and-Apache-Camel-tp1046084p1046084.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to