Skip to content

StompJmsDurableTopicSubscriber not registering as durable subscriber on ActiveMQ 5.8.0 from Camel. #9

Description

@jhberges

I can see in the debugger that it is StompJmsDurableTopicSubscriber that is used, and the TRACE level logging on the stomp connector in ActiveMQ yields:

2013-02-13 12:45:25,737 | TRACE | Sending: 
CONNECTED
heart-beat:0,0
session:ID:8100-007-1502-1360754670225-2:33
server:ActiveMQ/5.8.0
version:1.1

2013-02-13 12:45:25,752 | TRACE | Received: 
SUBSCRIBE
ack:client
receipt:2
destination:/topic/blabla.topic
id:1
persistent:true

Spring configuration:

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

<bean id="stompConnectionFactory" class="org.fusesource.stomp.jms.StompJmsConnectionFactory">
    <property name="brokerURI" value="${activeMqInstance}"/>
    <property name="username" value="${activeMqUsername}"/>
    <property name="password" value="${activeMqPassword}"/>
</bean>

And the "activeMqInstance" variable is set to:

tcp://localhost:61613

(i.e "stomp+nio")

The Camel consumer is declared as:

<camel:from uri="stomper:topic:blabla.topic?clientId=stomper-blabla&amp;durableSubscriptionName=stomper-blabla"/>

The result is that the "stomper-blabla" consumer is connected as an ephemeral consumer, and does not assume the role of the configured durable one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions