[ 
https://issues.apache.org/jira/browse/AMQ-4072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462438#comment-13462438
 ] 

Stephen Vincent commented on AMQ-4072:
--------------------------------------

Maybe this is clue.  When I run the java test, the "correlationId" header 
follows the message "id" header.  However, when I run my C-based client, I 
receive a "clientId" header in place of the correlationId header.  For example, 
I get:

     clientId: BA3CB329-3A27-4328-B3F7-E0E4F5655B69


What is that "clientId" and do you happen do know why I get that instead of the 
correlation ID?

Here is an excerpt from the boker log:

2012-09-25 00:23:00,777 | TRACE | Run task done: 
org.apache.activemq.ActiveMQSessionExecutor@15004dd | 
org.apache.activemq.thread.PooledTaskRunner | ActiveMQ Session Task-2
2012-09-25 00:23:00,777 | TRACE | ID:d22275-4226-1348543308113-3:11:1:1 
received message: MessageDispatch {commandId = 6, responseRequired = false, 
consumerId = ID:d22275-4226-1348543308113-3:11:1:1, destination = 
queue://testq, message = ActiveMQTextMessage {commandId = 5, responseRequired = 
true, messageId = ID:d22275-4226-1348543308113-3:10:1:1:1, originalDestination 
= null, originalTransactionId = null, producerId = 
ID:d22275-4226-1348543308113-3:10:1:1, destination = queue://testq, 
transactionId = null, expiration = 0, timestamp = 1348546980730, arrival = 0, 
brokerInTime = 1348546980730, brokerOutTime = 1348546980777, correlationId = 
XXXXABCDEFGhijklm, replyTo = null, persistent = true, type = null, priority = 
5, groupID = null, groupSequence = 0, targetConsumerId = null, compressed = 
false, userID = null, content = org.apache.activemq.util.ByteSequence@50a492, 
marshalledProperties = org.apache.activemq.util.ByteSequence@6481eb, 
dataStructure = null, redeliveryCounter = 0, size = 1134, properties = 
{clientId=BA3CB329-3A27-4328-B3F7-E0E4F5655B69}, readOnlyProperties = true, 
readOnlyBody = true, droppable = false, text = 1 This is a test msg sent at 
25SEP2012:00:23:00.71. Xyz}, redeliveryCounter = 0} | 
org.apache.activemq.ActiveMQMessageConsumer | qtp3980107-29 - 
/demo/message?type=queue&destination=testq&type=queue&clientId=9A16B3C8-D98B-410C-B974-499137C5044D&readTimeout=1000
2012-09-25 00:23:00,777 | TRACE | Running task iteration 0 - vm://localhost#21 
| org.apache.activemq.thread.PooledTaskRunner | ActiveMQ VMTransport: 
vm://localhost#21-2
2012-09-25 00:23:00,777 | TRACE | ack:MessageAck {commandId = 5, 
responseRequired = false, ackType = 2, consumerId = 
ID:d22275-4226-1348543308113-3:11:1:1, firstMessageId = 
ID:d22275-4226-1348543308113-3:10:1:1:1, lastMessageId = 
ID:d22275-4226-1348543308113-3:10:1:1:1, destination = queue://testq, 
transactionId = null, messageCount = 1, poisonCause = null} | 
org.apache.activemq.broker.region.PrefetchSubscription | ActiveMQ VMTransport: 
vm://localhost#21-2

                
> RESTful HTTP interface responses do not contain a correlation ID header
> -----------------------------------------------------------------------
>
>                 Key: AMQ-4072
>                 URL: https://issues.apache.org/jira/browse/AMQ-4072
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.6.0
>         Environment: RESTful HTTP client
>            Reporter: Stephen Vincent
>            Priority: Critical
>             Fix For: 5.7.0
>
>         Attachments: CorrelId.java
>
>
> When using a RESTful HTTP client to GET a message that has a correlation ID, 
> the correlation ID is not sent as a header in the response from the broker.  
> This inhibits my RESTful HTTP client from performing request-response.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to