package com.yeejoin.amos.boot.module.jxiop.biz.activemq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsMessagingTemplate;
import org.springframework.stereotype.Component;

import javax.jms.Queue;
import java.util.UUID;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/6/7
 */
@Component
public class QuerueProduce {

    @Autowired
    private JmsMessagingTemplate jmsMessagingTemplate;

    @Autowired
    private Queue queue;

    public void produceMsg(String produceMsg){
        jmsMessagingTemplate.convertAndSend(queue,produceMsg);
    }

}

