activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elliottjf <...@pobox.com>
Subject How can I configure an "Exclusive Consumer" queue with a Jencks JCAConnector?
Date Fri, 02 Feb 2007 08:40:51 GMT

I'm attempting to create a Jencks JCAConnector around a
"consumer.exclusive=true" marked queue, but the constructed consumer appears
to not be exclusive.

Has anybody attempted a similar use case or know why this shouldn't work?

I'm using Spring 2.0.2, ActiveMQ 4.1, and Jencks 2.0

Here are the relevant snippits from my Spring appContext.xml

    <bean id="rpcInboundConnector" class="org.jencks.JCAConnector">
        <property name="jcaContainer" ref="jencks"/>
        <property name="activationSpec">
            <bean class="org.apache.activemq.ra.ActiveMQActivationSpec">
                <property name="destination"
value="rpc-exclusive?consumer.exclusive=true"/>
                <property name="destinationType" value="javax.jms.Queue"/>
            </bean>
        </property>
        <property name="ref" value="rpcMqListener"/>
    </bean>

    <bean id="jencks" class="org.jencks.JCAContainer">
        <property name="transactionManager" ref="transactionManager"/>
        <property name="threadPoolSize" value="25"/>
        <property name="resourceAdapter">
            <bean id="activeMQResourceAdapter"
class="org.apache.activemq.ra.ActiveMQResourceAdapter">
                <property name="serverUrl" value="tcp://lokum:61616"/>
            </bean>
        </property>
    </bean>

    <bean id="transactionManager"
class="org.jencks.factory.TransactionManagerFactoryBean"/>


Any pointers in the right direction would be much appreciated!
cheers,
 - joe


-- 
View this message in context: http://www.nabble.com/How-can-I-configure-an-%22Exclusive-Consumer%22-queue-with-a-Jencks-JCAConnector--tf3159712.html#a8763535
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message