Convert jms to json.

Homepage Clovertech Forums Cloverleaf Convert jms to json.

  • Creator
    Topic
  • #120382
    RICK L. PRITCHETT
    Participant

    I am looking to convert a jms transaction to a json.  Has anyone else accomplished this?

Viewing 0 reply threads
  • Author
    Replies
    • #120408
      Todd Hamilton
      Participant

      Rick,

      I have yet to accomplish this. You will need to address a few things.

      1. 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.
      2. 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:

      1. “Write Java code that converts an XML string to a JSON string.”
      2. “Write some sample Java code that creates a JMS subscriber client using the JMS API.”

      Todd

      todd.hamilton.omaha@gmail.com
      (402) 660-2787

Viewing 0 reply threads
  • You must be logged in to reply to this topic.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10