activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LE Phi Long <>
Subject right config for activeMQ to handle persisted messages through Oracle
Date Tue, 29 Nov 2011 16:09:39 GMT

I can't figure out why my configuration doesn't work.

My configuration: activeMQ 5.4.2 servicemix 3.3.2

One activeMQ, 2 servicemix connected to activeMQ (box 1 and box2, box 1 produces messages
to box2). In this configuration everything works fine.
When I try to instanciate only activeMQ and Box1, using Oracle connected to activeMQ, I can
check messages produced by Box1 in my Oracle schema.
Then stop activeMQ and start it again just with box2 which should compute messages from box1.

An error occurs in servicemix log:
INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished installation of archive:
WARN  - ActiveMQManagedConnection      - Connection failed: javax.jms.JMSException: Cannot
remove a consumer from a connection that had not been registered: ID:vhmucj3.helios.cp-55010-1322581269935-2:7
75454 [ActiveMQ Connection Worker: tcp:///] WARN org.apache.geronimo.connector.outbound.GeronimoConnectionEventListener
- connectionErrorOccurred called with null
javax.jms.JMSException: Cannot remove a consumer from a connection that had not been registered:
        at org.apache.activemq.util.JMSExceptionSupport.create(
        at org.apache.activemq.ActiveMQConnection.onAsyncException(
        at org.apache.activemq.ActiveMQConnection$2$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.IllegalStateException: Cannot remove a consumer from a connection that
had not been registered: ID:vhmucj3.helios.cp-55010-1322581269935-2:7
        at org.apache.activemq.command.RemoveInfo.visit(
        at org.apache.activemq.transport.TransportFilter.onCommand(
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(
        at org.apache.activemq.transport.InactivityMonitor.onCommand(
        at org.apache.activemq.transport.TransportSupport.doConsume(
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(

2011-11-29 16:42:27,830 | DEBUG | box1-direct-technical-split.event.1 toPageIn: 0, Inflight:
0, pagedInMessages.size 1, enqueueCount: 0, dequeueCount: 1 |
| BrokerService[cocololo] Task
2011-11-29 16:42:27,830 | DEBUG | cocololo removing consumer: ID:vhmucj3.helios.cp-55010-1322581269935-2:7:-1:2
for destination: topic://ActiveMQ.Advisory.TempQueue,topic://ActiveMQ.Advisory.TempTopic | | ActiveMQ Transport: tcp:///
2011-11-29 16:42:27,830 | DEBUG | remove connection id: ID:vhmucj3.helios.cp-55010-1322581269935-2:7
| | ActiveMQ Transport: tcp:///
2011-11-29 16:42:27,999 | DEBUG | Transport failed: |
| ActiveMQ Transport: tcp:///
        at org.apache.activemq.openwire.OpenWireFormat.unmarshal(
        at org.apache.activemq.transport.tcp.TcpTransport.readCommand(
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(

here is my activeMQ config:


    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">

    <broker xmlns="" brokerName="cocololo" brokerId="tamoule"
persistent="true" dataDirectory="${activemq.base}/pll" useJmx="true">

                <policyEntry queue=">" producerFlowControl="false"/>

            <managementContext createConnector="true"/>
        <journalPersistenceAdapterFactory journalLogFiles="1" dataDirectory="${activemq.base}/pll"
            <transportConnector name="openwire" uri="tcp://;wireFormat.maxInactivityDuration=0"/>

        <bean id="oracle-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
                <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
                <property name="url" value="jdbc:oracle:thin:@vhmucj3:15212:HPRD10"/>
                <property name="username" value="amq"/>
                <property name="password" value="amq"/>
                <property name="maxActive" value="200"/>
                <property name="poolPreparedStatements" value="true"/>

    <!--import resource="jetty.xml"/-->


What I would be able to do is to consume messages produced by Box1 during the day by Box2
during the night.

Any help would be appreciated.

Phi-Long LE


Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage exclusif de ses
destinataires. Il peut ?galement ?tre prot?g? par le secret professionnel. Si vous recevez
ce message par erreur, merci d'en avertir imm?diatement l'exp?diteur et de le d?truire. L'int?grit?
du message ne pouvant ?tre assur?e sur Internet, la responsabilit? du groupe Atos ne pourra
?tre engag?e quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour
maintenir cette transmission exempte de tout virus, l'exp?diteur ne donne aucune garantie
? cet ?gard et sa responsabilit? ne saurait ?tre engag?e pour tout dommage r?sultant d'un
virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee;
it may also be privileged. If you receive this e-mail in error, please notify the sender immediately
and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability
cannot be triggered for the message content. Although the sender endeavors to maintain a computer
virus-free network, the sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message