StreamSets and webMethods
Tags: integration, streamsets, tutorial
Published: 2022-09-20 12:23:06

---
title: StreamSets and webMethods
published: true
date: 2022-07-29 15:47:42 UTC
tags: #integration, #streamsets, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/streamsets-and-webmethods/259638
---

## About the Article

This article explains different ways to connect StreamSets with webMethods on-prem products like Universal Messaging and Integration Server.

## 1.0 StreamSets Landscape

Any development platform will have 3 main components: Design time components, Runtime Components and Administration/Control components. Sometimes Design time components and Administration Components are merged. StreamSets follows the same path. Its Admin component that is “Control hub” is also its Design time component.

Runtime component can be hosted on Cloud providers (AWS, Azure, GCP) or locally. Once a Deployment set is defined on the Control hub, it allows users to download the deployment script. Either as a tar ball or a docker command. Running instance of a Deployment is called and engine.

To Engine automatically connects to the control hub and users can manage the engine from the control hub. Since StreamSets engines can be executed anywhere, to work with webMethods the StreamSets engine and webMethods instances should be reachable to each other.

A StreamSets Data pipeline (aka Workflow ) consists of mainly 3 types of steps.  
• A Data Origin to read data from  
• A Data Destination to send data to at the end  
• Processing steps are Intermediary between Source and Destination which processes data.  
 ![Pic1_streamSets_pipeline_basic](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/9/892744754cdb68cead1545cddec07dfd6d6b0522.png)

## 2.0 Messaging

For messaging StreamSets provides connectors for different messaging technologies like JMS, Kafka, Amazon SQS, Azure Event Hub, Apache Pulsar etc.

To connect with Universal Messaging we can use JMS Consumer as Origin and JMS producer as Destination.

To use JMS tools should be enabled and target JMS library should be added in the Engine.

### 2.1 Enable JMS Stage Library in the Deployment

Goto Setup > Deployments

Edit the required Deployment

Goto Stage 2

Click on Stage Libraries  
 ![pic2_Stage_libraries](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/5/257b2bae492ab286cdb221e62d98f48c7e2c6ad0.png)

Search for JMS, this will list JMS Consumer and JMS Producer  
Click add all to move them to Selected stages pane on the right  
 ![Pic3_select_stage_lib](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/5/151e623c3b3098a35dbb8d79369c42351f0139e5.png)

Click ok and click Save & Next   
Goto Last section and Restart engine.

### 2.2 Add Universal Messaging JMS Client libraries to the Engine

Goto Setup > Engines

Click on the required Engine

In Edit page, Goto External Resources > External Libraries

Click on ‘+’ icon and browse UM JMS client jars nJMS.jar and nClient.jar from local SoftwareAG installations.

```
<SoftwareAG>/UniversalMessaging/lib/nClient.jar

<SoftwareAG>/UniversalMessaging/lib/nJMS.jar

```

After upload Click Restart Engine to restart engine

![Pic4_Client_libs](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/3/d373abc63fecfadf000d8fa53da51ab03063d995.png)

### 2.3 Create a Connection

Goto Setup > Connections

Click on + icon to add a new Connection

Give it a Name and Description

Select Authoring Engine as the engine where JMS libraries are deployed

For Type, Select JMS

Click Save & Next to go to Configure Connection section

Add Universal Messaging connection details

```
JMS Initial Context Factory: com.pcbsys.nirvana.nSpace.NirvanaContextFactory

JNDI Connection Factory: Connection factory name from UM

JMS Provider URL: UM URL nsp://<host>:<port>

```

Click on Test Connection, this should show Green Tick at the top

Click Save  
 ![Pic5_Connection](https://aws1.discourse-cdn.com/techcommunity/original/3X/5/0/5046050c76ceb8c72c97ee216a967e19989c8d90.png)

### 2.4 Use JMS stages in Data Pipelines

Goto Build > Pipelines

Create a Pipeline

Add a origin to read data from.

In the Destination drop down, select JMS Producer.

Leave defaults in the General Tab

Goto JMS tab

For Connection select the connection created in previous section

Configure JMS Destination name and JMS Destination type as per configuration from UM  
 ![Pic6_Data_pipeline_with_jms](https://aws1.discourse-cdn.com/techcommunity/original/3X/e/9/e95c99fc11fda129664839de08ba58fb1d6245f1.png)

In Data Format tab,  
Select a suitable data format. Example JSON.

### 2.5 Results

Start the pipeline and see results,  
 ![Pic7_Streamsets_jms_result](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/1/f1108f5f2e5be6554e171ae41d66156843199239.png)

![Pic8_UM_resutls](https://aws1.discourse-cdn.com/techcommunity/original/3X/e/3/e3b17c5e68c6c5c100f14660fbb9f6498da7eee2.png)

## 3.0 REST API

StreamSets provides HTTP Client Destination, which can be used to make REST API Calls.  
This feature can be used to call REST APIs on SofwareAG products Integration Server, API Gateway, [webmethods.io](http://webmethods.io) Integration, [webmethods.io](http://webmethods.io) B2B etc.

### 3.1 Use HTTP client in Data pipelines

To call an API on Integration Server, use HTTP Client in Data pipeline  
 ![Pic9_rest_data_pipeline](https://aws1.discourse-cdn.com/techcommunity/original/3X/2/1/21af64ffc6e118761194a638a1569d65edf2f045.png)

### 3.2 Configure HTTP Endpoint details

Set up REST Endpoint details  
 ![Pic10_RES_HTTP_tab](https://aws1.discourse-cdn.com/techcommunity/original/3X/5/c/5c66f0d55dd126ec3479114d47b6ae1df21bda26.png)

Set Credentials in Credentials tab and set appropriate Data format in Data Format tab  
 ![Pic11_rest_data_format_tab](https://aws1.discourse-cdn.com/techcommunity/original/3X/7/9/79855a322a7ec3f500f860df807d846d089103fb.png)

### 3.2 Results

Run the pipeline to see results on StreamSets control hub and Integration Server logs  
 ![Pic12_rest_result_streamsets](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/e/0e416c4c227b707a42b72c0447206d220428610d.png)

![Pic13_rest_result_IS](https://aws1.discourse-cdn.com/techcommunity/original/3X/0/0/00b30686eb0b8c245712b31f5b0b52218e0c893c.png)

## Useful links | Relevant resources

[DataOps Platform Fundamentals](https://academy.streamsets.com/courses/dataops-platform-fundamentals/)
    

[Documentation - StreamSets DataOps Platform](https://docs.streamsets.com/)
  

[Certification Learning Path](https://academy.streamsets.com/courses/certification-onboarding/)


[Read full topic](https://tech.forums.softwareag.com/t/streamsets-and-webmethods/259638)