Last active
July 5, 2022 11:18
-
-
Save atesibrahim/dea6f09bf7ef4197a7b27fc6e8031285 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.amqp.rabbit.core.RabbitTemplate; | |
public class EnqueueService { | |
private final RabbitTemplate rabbitTemplate; | |
public void enqueue(YourObject request) { | |
rabbitTemplate.convertAndSend(RabbitMqExchangeConfiguration.EXCHANGE, "", request); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment