Learning Objectives:-
This unit describes:-
- How to use an Agent Pulsar adapter for consumers?
Introduction:
In this tutorial, we will learn how Agent Pulsar adapter works for Consumers. In simple words, an Agent pulsar adapter for Consumer means Inbound Pulsar Adapter. We use Inbound Pulsar Adapter when somebody pushes the topic into a topic customer on the Kafka side, then we are consuming. We have an event-driven listener which is camel consumer. We don’t need a scheduler. We can consume immediately. This is the Inbound process because we are receiving data here. It plays the role of the consumer.
So now we are going to check the use cases for inbound Pulsar Adapter i.e, for consumers. To configure, firstly we need to learn and follow some steps:
1.How to configure a new agent control board.
- Go to the Integration Detail page.
- Click on the new agent control board.
- Now we need to create a connection destination. For that, we can give any name to the destination. As shown below.
- Fill all the required fields in Salesforce > Agent.
- Click on the Ping Agent connection.
- Fill all the required fields in Agent > Salesforce.
- Click on the Ping Salesforce connection.
- And save it.
CASE 1: Use Case for file type CSV
2. Create Adapter:
- Add any name in Topic and the topic will automatically be created on the Pulsar server.
- Select File Type.
- Select Connection Destination which we have created recently.
3. Configure Interface page:
- Create Integration.
- Create Interface.
- Add Metadata Provider, Istructure Repository, and Message type to the interface page as shown below.
- Add Inbound Adapter
4. Start the route:
- We need to start the route.
5. Do Mapping:
6. Callout to Pulsar Server:
7. Message Monitoring:
CASE 2: Use Case for file type XML
1. We need to do Agent control board configuration as we did in CSV. Don’t need to create new.
2. Create Adapter:
- Add any name in Topic and the topic will automatically be created on the Pulsar server.
- Select File Type.
- Select Connection Destination which we have created recently.
3. Configure Interface page:
- Create Integration.
- Create Interface.
- Add Metadata Provider, Istructure Repository, and Message type to the interface page as shown below.
- Add Inbound Adapter
4. Start the route:
- We need to start the route.
5. Do Mapping:
6. Callout to Pulsar Server:
7. Message Monitoring:
CASE 3: Use Case for file type JSON
1. We need to do Agent control board configuration as we did in CSV. Don’t need to create new.
2. Create Adapter:
- Add any name in Topic and the topic will automatically be created on the Pulsar server.
- Select File Type.
- Select Connection Destination which we have created recently.
3. Configure Interface page:
- Create Integration.
- Create Interface.
- Add Metadata Provider, Istructure Repository, and Message type to the interface page as shown below.
- Add Inbound Adapter
4. Start the route:
- We need to start the route.
5. Do Mapping:
6. Callout to Pulsar Server:
7. Message Monitoring: