Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
This article demonstrates how to implement hybrid messaging on the cloud using existing on-premises assets.
This article is intended for Integration architects and developers working with webMethods.
The client has migrated from a self-hosted setup to a cloud platform. Their application uses a messaging solution, and the development team now aims to orchestrate Deploy Anywhere connections to support business needs.
To be Setup
Refer the below link for more details
Orchestrate the flow using flow service or workflow and invoke the package services
Refer below link how to orchestrate the package services.
Configure JNDI and JMS connections on DRT (design runtime)
JNDI configurations
JNDI API’s
GET JNDI Details
METHOD: GET
URL: https://<TenantName>/apis/v1/rest/control-plane/runtimes/<runtimeName>/configurations/jndi/<JNDIName>
In our case
JNDIName: DEFAULT_IS_JNDI_PROVIDER
Runtime: default (we are using design runtime)
METHOD: PUT
URL: https://<TenantName>/apis/v1/rest/control-plane/runtimes/<RunTimename>/configurations/jndi/<JNDI Name>?updateRuntime=true
JNDI Name: DEFAULT_IS_JNDI_PROVIDER
Update Runtime: true (sync the changes to the runtime)
Request Sample :
{ "assetId": "DEFAULT_IS_JNDI_PROVIDER",
"type": "jndi",
"properties":
[
{ "propertyKey": "description",
"value": "updates from API" }
],
"enableConnection": true
}
JMS configurations
The way we have updated the JNDI configurations in the similar fashion we can update the JMS configurations as well.
Automate using API’s
URL: https://<TenantName>/apis/v1/rest/control-plane/runtimes/<runtimeName>/configurations/jndi/<JMSConnectionName>
JMS connection name: DEFAULT_IS_JMS_CONNECTION (using default connection with updated connection details)
Now we can use the response of the above API invoke to update the property of JNDI. If you have the property key available, then we can skip this step.
URL: https://<tenantName>/apis/v1/rest/control-plane/runtimes/<RunTimeName>/configurations/jms/<JMS connection Name>?updateRuntime=true
JMS connection name: DEFAULT_IS_JMS_CONNECTION
Subscribe the message from UM server
Note: If you have existing subscriber set up then you can skip this section.
Configure the JMS connection
In our case we will set up the JMS connection on webMethods.io Integration tenant.
Under the connection tab selection JMS connector and configure it with UM server details.
Create the JMS trigger
Subscriber service
End to end Testing
Great breakdown on hybrid messaging and how it can support flexible deployments. For those who also work on personalization projects, I recently came across a helpful tool for experimenting with creative bio ideas that can save time and spark inspiration. It’s always interesting to see how different solutions, whether in tech or design, can simplify workflows and boost efficiency.