Git Product home page Git Product logo

Comments (3)

RongtongJin avatar RongtongJin commented on July 17, 2024

Producer group is used to check when using transaction message, it should correspond to the listener. So multiple groups to use the same RocketMQTransactionListener bean is not considered for the time being.

from rocketmq-spring.

wangxing-git avatar wangxing-git commented on July 17, 2024

Can you consider the support of @RocketMQTransactionListener on @Bean?

@Bean
@RocketMQTransactionListener(
        txProducerGroup = "${spring.application.name}-${spring.profiles.active}-transactional-account-producer2",
        corePoolSize = 5,
        maximumPoolSize = 10
)
public RocketMQTransactionListener rocketMQTransactionListener1(){
    return new TransactionListenerImpl();
}

@Bean
@RocketMQTransactionListener(
        txProducerGroup = "${spring.application.name}-${spring.profiles.active}-transactional-account-producer2",
        corePoolSize = 5,
        maximumPoolSize = 10
)
public RocketMQTransactionListener rocketMQTransactionListener2(){
    return new TransactionListenerImpl();
}

If I want to complete my requirements, I have to create multiple TransactionListenerImpl classes, in fact I just want to use one.

from rocketmq-spring.

vongosling avatar vongosling commented on July 17, 2024

txProducerGroup has been removed in the upcoming release (#179) because of some hidden trouble in transaction implementation. Nowadays, one template binding only one group, there is no rational plan for improvement. But I would like to hear from you. For this reason, this issue will be close in the next week if we could not receive any substantial improvement suggestion :-)

from rocketmq-spring.

Related Issues (20)

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.