infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
Convert jms to json.
RICK L. PRITCHETT
I am looking to convert a jms transaction to a json. Has anyone else accomplished this?
Find more posts tagged with
Clovertech
Comments
Todd Hamilton
Rick,
I have yet to accomplish this. You will need to address a few things.
Create a JMS client that receives a JMS message from a JMS Queue, either using a P2P or a Pub/Sub messaging approach. This can be done using the built-in Java functionality of Cloverleaf. You will need to write Java code.
Convert the message content from the JMS publisher to a JSON formatted message. What you convert it to depends on the downstream process that consumes the new JSON-formatted message. Your job is easy if the message you receive is simply a JMS text message in an XML format, and the downstream system wants a JSON representation of that XML.
Here are some ChatGPT prompts that could get you started:
"Write Java code that converts an XML string to a JSON string."
"Write some sample Java code that creates a JMS subscriber client using the JMS API."
Todd