Reading and writing to a queue

Talend ESB is supplied with the Apache ActiveMQ software for creating message queues and topics. This recipe shows how we can write to and read from an ActiveMQ queue.

Getting ready

First, we'll need to start ActiveMQ.

  1. Navigate to the folder <talend installation folder>\Runtime_ESBSE\activemq\bin and double-click on the file activemq.bat.
  2. This will open a command window. Do not close this command window while you are doing this recipe.
  3. You can access the ActiveMQ administration console by opening the URL localhost:8161/admin. This will allow you to view your queues and topics.
  4. Open the job jo_cook_ch09_0080_readWriteQueue.

How to do it...

The first thing to do is to write a message to a queue.

Writing to the queue

  1. Drag a ...

Get Talend Open Studio Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.