Testing ActiveMQ and Kafka

Hi! We need to implement the following scenario.
The message arrives at ActiveMQ, is processed and passed to the Kafka queue. This is necessary to determine the speed of message processing.

I found how to send and receive JMS/JMS messages or Kafka/Kafka messages. How to implement JMS/Kafka interaction?