Hi

I have a route that works fine without the batch sequencing and it works fine 
with batch sequencing but INONLY,
it doesn't work when I expect a reply.


I've simplified the code to the following to eliminate my code as much as 
possible.
from(afisEndpoint).resequence(header(seqNum)).batch(new 
BatchResequencerConfig(capacity, timeout))
                    .transform(constant("Some response : " + header(seqNum)));

On the client I have...
Object obj = template.sendBodyAndHeader("jms:queue:afis", 
ExchangePattern.InOut, "some message", "seqnum", "1");
        //confirm we got a value back from the JMS queue
        assertNotNull(obj);



The trace is below but there's no reply coming back to the client and it times 
out after 20 seconds.
If you'd like a test case I can put it together, just wondering first if 
there's a usage thing I'm not aware of
or if it looks like a bug and maybe a workaround.

Taariq

[aultMessageListenerContainer-1] Tracer                         INFO  
ID:Taariq-NB-58265-1276229795090-2:1:2:1:1 >>> (route2) from(jms://afis) --> 
resequencer <<< Pattern:InOut, Headers:{seqnum=1, JMSRedelivered=false, 
JMSCorrelationID=a7921b9e-305c-4a6f-a554-c686666259c1, 
JMSMessageID=ID:Taariq-NB-58265-1276229795090-2:1:2:1:1, JMSXGroupID=null, 
JMSType=null, JMSDeliveryMode=2, JMSTimestamp=1276229796093, JMSPriority=4, 
JMSDestination=queue://afis, JMSExpiration=1276229816093, 
JMSReplyTo=temp-queue://ID:Taariq-NB-58265-1276229795090-2:1:1}, 
BodyType:String, Body:some message
[aultMessageListenerContainer-1] Tracer                         INFO  
ID:Taariq-NB-58265-1276229795090-2:1:2:1:1 >>> (route2) from(jms://afis) --> 
resequencer <<< Pattern:InOut, Headers:{seqnum=1, JMSRedelivered=false, 
JMSCorrelationID=a7921b9e-305c-4a6f-a554-c686666259c1, 
JMSMessageID=ID:Taariq-NB-58265-1276229795090-2:1:2:1:1, JMSXGroupID=null, 
JMSType=null, JMSDeliveryMode=2, JMSTimestamp=1276229796093, JMSPriority=4, 
JMSDestination=queue://afis, JMSExpiration=1276229816093, 
JMSReplyTo=temp-queue://ID:Taariq-NB-58265-1276229795090-2:1:1}, 
BodyType:String, Body:some message
[ Camel Thread 1 - Batch Sender] Tracer                         INFO  
ID:Taariq-NB-58265-1276229795090-2:1:2:1:1 >>> (route2) from(jms://afis) --> 
transform[Some response : header(seqNum)] <<< Pattern:InOut, Headers:{seqnum=1, 
JMSRedelivered=false, JMSCorrelationID=a7921b9e-305c-4a6f-a554-c686666259c1, 
JMSMessageID=ID:Taariq-NB-58265-1276229795090-2:1:2:1:1, JMSXGroupID=null, 
JMSType=null, JMSDeliveryMode=2, JMSTimestamp=1276229796093, JMSPriority=4, 
JMSDestination=queue://afis, JMSExpiration=1276229816093, 
JMSReplyTo=temp-queue://ID:Taariq-NB-58265-1276229795090-2:1:1}, 
BodyType:String, Body:some message
[ Camel Thread 1 - Batch Sender] Tracer                         INFO  
ID:Taariq-NB-58265-1276229795090-2:1:2:1:1 >>> (route2) from(jms://afis) --> 
transform[Some response : header(seqNum)] <<<  (OUT), Pattern:InOut, 
Headers:{seqnum=1, JMSRedelivered=false, 
JMSCorrelationID=a7921b9e-305c-4a6f-a554-c686666259c1, 
JMSMessageID=ID:Taariq-NB-58265-1276229795090-2:1:2:1:1, JMSXGroupID=null, 
JMSType=null, JMSDeliveryMode=2, JMSTimestamp=1276229796093, JMSPriority=4, 
JMSDestination=queue://afis, JMSExpiration=1276229816093, 
JMSReplyTo=temp-queue://ID:Taariq-NB-58265-1276229795090-2:1:1}, 
BodyType:String, Body:some message, OutBodyType:String, OutBody:Some response : 
header(seqNum)

Reply via email to