Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Producer headers

HeaderTypeDescription
CamelIronMQOperationStringIf value set to CamelIronMQClearQueue the queue is cleared of unconsumed messages.
CamelIronMQMessageIdString or io.iron.ironmq.IdsThe id of the IronMQ message as a String when sending a single message, or a Ids object when sending a array of strings. See message body

Consumer headers

HeaderTypeDescription
CamelIronMQMessageIdStringThe id of the message.
CamelIronMQReservationIdStringThe reservation id of the message.
CamelIronMQReservedCountStringThe number of times this message has been reserved.

Message body when producing

...

In the latter case the batch of strings will be send to IronMQ as one request, creating one message pr. element in the array.

 

Consumer example

Consume 50 messages pr. poll from the queue 'testqueue' on aws eu, and save the messages to files.

Code Block
languagejava
from("ironmq:testqueue?ironMQCloud=mq-aws-eu-west-1.iron.io&projectId=myIronMQProjectid&token=myIronMQToken&maxMessagesPerPoll=50")
  .to("file:somefolder);

 

 

...

Producer example

Dequeue from activemq jms and enqueue the messages on IronMQ.

Code Block
languagejava
from("activemq:foo)
  .to("ironmq:testqueue?projectId=myIronMQProjectid&token=myIronMQToken");