Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Producer
- sendEmail(String body){
- message.put(email, body)
- producer.sendMessage(message)
- }
- Cnsumer
- handleDelivery() {
- Map map = deserialize(body);
- String email = map.get("email");
- emailService.sendEmail(email, to, from ...)
- }
- EmailService
- //aici is alea cu smtp, initializari etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement