Wiki source code of Sending data to a custom queue

Last modified by Erik Bakker on 2023/08/23 15:21

Show last authors
1 {{container}}{{container layoutStyle="columns"}}(((
2 In some cases, there is a need to listen on a 'custom' queue for data. For example, when retrieving large amounts of data, you might need to place parts of the data on the queue to free up memory to process the complete batch of data. For those (and other) situations, it could be helpful to create 'custom' in-between queues. We need an additional writer on that 'custom' queue to ensure that data will be placed on the queue.
3
4 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]].
5
6 == 1. Prerequisites ==
7
8 * Advanced knowledge of the eMagiz platform
9 * Intermediate course on Orchestration of data packets
10
11 == 2. Key concepts ==
12
13 This microlearning centers around sending data to a custom queue
14 With a custom queue, we mean: A queue that is manually defined by an eMagiz user instead of eMagiz itself as a result of an automated process
15
16 To send data to a custom queue, you need:
17
18 * A JMS outbound channel adapter within your flow that sends data to the 'custom' queue
19 * The fully qualified name of the 'custom' queue on which to listen
20
21 == 3. Sending data to a custom queue ==
22
23 In some cases, there is a need to listen on a 'custom' queue for data. For example, when retrieving large amounts of data, you might need to place parts of the data on the queue to free up memory to process the complete batch of data. For those (and other) situations, it could be helpful to create 'custom' in-between queues. We need an additional writer on that 'custom' queue to ensure that data will be placed on the queue.
24
25 To send data to a custom queue, you need:
26
27 * A JMS outbound channel adapter within your flow that sends data to the 'custom' queue
28 * The fully qualified name of the 'custom' queue on which to listen
29
30 === 3.1 Setting up the outbound channel adapter ===
31
32 To set up the outbound channel adapter, navigate to the flow in Create in which you want to listen for messages on the 'custom' queue and enter "Start Editing" mode. After doing so, add the JMS outbound channel adapter to the canvas by dragging it on the canvas. Subsequently, double-click on the component to open it so you can edit it.
33
34 [[image:Main.Images.Microlearning.WebHome@advanced-orchestration-of-data-packets-sending-data-to-a-custom-queue--jms-outbound-channel-adapter-empty.png]]
35
36 Here, you need to define the channel from which you retrieve the messages that need to be placed on the queue, the connection factory, the queue name you want to send data to, and deselect the option Extract payload.
37
38 [[image:Main.Images.Microlearning.WebHome@advanced-orchestration-of-data-packets-sending-data-to-a-custom-queue--jms-outbound-channel-adapter-filled-in.png]]
39
40 The moment you are satisfied, you can press Save on the component. Now you have successfully ensured that you send messages to a 'custom' queue.
41
42 == 4. Key takeaways ==
43
44 * A JMS outbound channel adapter within your flow that sends data to the 'custom' queue
45 * The fully qualified name of the 'custom' queue on which to listen
46
47 == 5. Suggested Additional Readings ==
48
49 If you are interested in this topic and want more information, please read the release notes provided by eMagiz.)))((({{toc/}}))){{/container}}{{/container}}