Coder Social home page Coder Social logo

lonyee1989 / lemon-rabbitmq Goto Github PK

View Code? Open in Web Editor NEW
49.0 7.0 33.0 23 KB

乐檬框架之rabbitMQ的解耦实现方式(基于springboot框架),利用ConfirmCallback确保消息安全发送至broker服务器,使用Ack/Nack手动确认消息处理状态,保证broker消息被正确消费

License: Apache License 2.0

Java 100.00%
rabbitmq springboot lemon confirm message-queue

lemon-rabbitmq's Issues

BasicPublisher下对rabbitTemplate的配置,有两项必须设置它的子类下

BasicPublisher下对rabbitTemplate的配置,有两项必须设置它的子类下:

rabbitTemplate.setReturnCallback(this);
rabbitTemplate.setConfirmCallback(this);

如果直接设置在sendMessage下,那么在继承了BasicPublisher的子类有多个的情况下,将会触发onMessage的InvocationTargetException异常

亲测如此
PR就懒得提交了...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.