[Fiware-tech-help] Proton doesn't send messages to Apache activemq

Haritz Puerto haritzpuerto94 at gmail.com
Sat Aug 1 17:09:29 CEST 2015


Dear Tali,

My name is Haritz and I am working with Proton. I have made a sample
definition file in which proton receives temperature reports and if it
finds 3 consecutive reports whose temperature is greater than 100ºC, then
it sends and ExpectedProblem event. I have three consumers. Two of them
work well (the ones that writes in a txt file), but the JMS consumer does
not work.

I have running proton on Tomcat 7.0.63. I also have running activemq 5.11.1

I put activemq-all-5.11.1.jar in tomcatDir/lib

In tomcatDir/conf/context.xml I have the following:

<?xml version='1.0' encoding='utf-8'?>
<!-- License ... -->
<Context>

    <Resource name="jms/ConnectionFactory"
              auth="Container"
               type="org.apache.activemq.ActiveMQConnectionFactory"
               description="JMS Connection Factory"
               factory="org.apache.activemq.jndi.JNDIReferenceFactory"
               brokerURL="tcp://localhost:61616"
               brokerName="LocalActiveMQBroker"/>

     <Resource
                   name="jms/queue/MyQueue"
                auth="Container"
                type="org.apache.activemq.command.ActiveMQQueue"
                description="my Queue"
                factory="org.apache.activemq.jndi.JNDIReferenceFactory"
                physicalName="MY.TEST.FOO.QUEUE"/>
</Context>

I can't see any message in the admin page of activemq. Actually, it doesn't
create the queue if it is not created, so I guess I am doing something
wrong, but I do not know what.

Please, find attached the definition file.

Thank you.

Best regards,

Haritz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150801/6505c784/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TempCPU.json
Type: application/json
Size: 3410 bytes
Desc: not available
URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20150801/6505c784/attachment.json>


More information about the Fiware-tech-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy