activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmathrusse <>
Subject Message is not delivered and disappears
Date Thu, 08 Mar 2007 23:49:27 GMT

I've got ActiveMQ 4.1.0 running successfully. (or so I think) I've got my
application connecting to it without any problems, utilizing Springs
framework. The problem I'm having is when I attempt to send a message to the
queue I receive the following in the activeMq.log file:
DEBUG AbstractRegion                 - Adding consumer:
DEBUG Transport                      - Transport failed: Connection reset Connection reset
DEBUG TransportConnection            - Stopping connection:
DEBUG TransportConnection            - Cleaning up connection resources.
DEBUG AbstractRegion                 - Removing consumer:
DEBUG TransportConnection            - Stopped connection:
I've attached my simple java client. It is very similar to the
SimpleProducer that is published here:
The only difference is that my InitialContext is created using a properties
object and supplying the InitialContextFactory and ProviderURL. The client
appears to connect successfully and sends a message successfully without
exceptions on the client, but I see the above exception on the server. In
addition, the message never gets received by the consumer.
Interestingly enough, if I change my client code from:
The message gets received by the consumer. Oddly, the above exception
message is still produced in my servers log file, but the message gets
delivered correctly. 
I've configured in the activemq.xml file my queues so they are started when
the broker starts as follows:
     <queue name="order.request.queue" physicalName="order.request.queue"/>
     <queue name="order.confirm.queue" physicalName="order.confirm.queue"/>
but my client cannot seem to locate them using the
ctx.looup("order.request.queue") method, so I'm using the dynamic queue
lookup instead: ctx.looup("dynamicQueues/order.request.queue") 
but I don't think that has anything to do with why the message is not
As listed above, if I use the createQueue method things work, but if I use
the ctx.lookup things don't. The reason it is so important to get this to
work is because I have a 3rd party application that will be sending messages
via JMS and it is using the ctx.lookup method, which is failing for me.

Any help would be greatly appreciated. Thanks.... 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message