SK SKYVVA Documentation

127.2 Outbound JMS Adapter

Learning Objectives:- This unit describes:-

Introduction:

In this tutorial, we will learn How to develop an Inbound interface for an Outbound JMS Adapter. This functionality is available from v2.47 onwards. In simple words, SKYVVA JMS Adapter, users can easily push data to a topic or queue and perform operations on a schedule or process urgent messages immediately. You can apply priority processing to specific records in queues and topics. Consume data means Outbound JMS Adapter. We need an Outbound JMS Adapter when we want data out to salesforce. So now we are going to check the use cases for the Outbound JMS Adapter i.e, for Consumer. To configure, firstly we need to learn and follow some steps: How to configure New Agent Control Board? To configure a new agent control board follow the given steps: Step1: Create Integration. => Go custom Link => Clickon agent control board.

Step2: The custom link (Agent control board) Navigate to the Dashboard of the new agent control board.

Step3: Fill in all the fields of the agent credential and click on the Ping Agent Connection button.

Step4: Fill in all the fields of the Salesforce credential and click on the Ping Salesforce Connection button.

How to check caching New Agent Control Board: To check caching first you should create all the data. Integration:

Interface Group:

Interface:

Mapping:

Use Cases:

1. File type CSV:

Pre-requisite:

Steps:

Step1:To Create Agent JMS CSV Outbound Adapter:

Configure Agent JMS CSV Outbound Adapter: You need to enter adapter properties base on system requirement and Select Connection Destination (Example: CamelAmazonEC2JMSAgent). No need to add a username and password because it is the default admin on the agent side. Here I’m testing Agent JMS adapter with MQ Product Type = ACTIVEMQ also you can test the Agent JMS adapter with another system like you need to configure adapter property base on your system configuration. Example: host, port, etc.

Step2: Create Integration and Outbound Interface:

Step3: Mapping

Step4: Callout(When you execute callout then after queue will automatically generate inside ActiveMQ server). skyvvasolutions.CallOutControl c = new skyvvasolutions.CallOutControl(); c.returnJSONComplete=true; c.actionDoIntegrate=false; c.isCreateMessage=true; String[] ids= new String[]{'0011j000011qHW8AAM','0011j000011qHW9AAM'}; List result = skyvvasolutions.Iservices.invokeCalloutV3('Agent_JMS_Integration','Camel Agent JMS CSV OB',ids,'SYNC',c); Step5: Message Monitoring

Step6: Check CSV Data on ActiveMQ Server: Open Link: http://18.197.54.48:8161/admin/browse.jsp Username: admin Password: admin **Go to queue Click on queue example: CamelAgentJMSCSVOB**. Click on message example: ID:ip-172-20-63-98.eu-central-1.compute.internal-35839-1612751473680-17:1:1:1:1.

2. File type JSON:

Pre-requisite:

Steps:

Step1:To Create Agent JMS JSON Inbound Adapter:

Step2: Create Integration and Inbound Interface:

Step3: Mapping

Step4: Check JSON Data on ActiveMQ Server: Open Link: http://18.197.54.48:8161/admin/browse.jsp Username: admin Password: admin **Go to queue Click on queue example: CamelAgentJMSJSONOB**. Click on message example: ID:ip-172-20-63-98.eu-central-1.compute.internal-35839-1612751473680-17:1:1:1:1.

Message Monitoring:

3. File type XML:

Pre-requisite:

Steps:

Step1:To Create Agent JMS JSON Inbound Adapter:

Step2: Create Integration and Inbound Interface:

Step3: Check XML Data on ActiveMQ Server: Open Link: http://18.197.54.48:8161/admin/browse.jsp Username: admin Password: admin **Go to queue Click on queue example: CamelAgentJMSXMLOB**. Click on message example: ID:ip-172-20-63-98.eu-central-1.compute.internal-35839-1612751473680-17:1:1:1:1.

Step4: Message Monitoring

Open this article in the interactive viewer →