You said that one of the headers is missing, so I assume others made it
through fine.  If so, try switching from List<ImageKey> to a List<String>
and see if you have the same issue (might be bumping up against an
unsupported type or something).  Also, if can you narrow this down to a unit
test, post it so we can take a look...


heatlamp wrote:
> 
> I'm a novice camel developer.
> 
> I've developed an application using seda queues, but when swapping to
> activemq one of my camel headers has disappeared (retrieving the contents
> of this header returns null).  
> 
> The info saved is a list, as follows
> 
> List<ImageKey> keyList = blah blah
> 
> exch.getIn().setHeader("ImageKeys", keyList);
> 
> The flow then goes through a few queues, and then is retrieved via
> something like this:
> 
> List<ImageKey> keys = (List<ImageKey>)exch.getIn().getHeader("ImageKeys",
> List.class);
> 
> This is the step that return the proper object with seda, but a null with
> activemq.
> 
> When I first tried this I received a serialization exception on he
> ImageKey object, which I fixed to get to this next error.
> 
> I'm running camel 2.6.0, activemq 5.4.2.
> 
> Anyone see a problem with this?  Is this the right way to save this state?
> 
> Thanks, Jim
> 


-----
Ben O'Day
IT Consultant -http://benoday.blogspot.com

--
View this message in context: 
http://camel.465427.n5.nabble.com/lost-header-ActiveMQ-tp4410496p4410777.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to