You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/12 10:00:11 UTC

[GitHub] [rocketmq-spring] wangxing-git commented on issue #71: I hope that the txProducerGroup of @RocketMQTransactionListener can support multiple.

wangxing-git commented on issue #71: I hope that the txProducerGroup of @RocketMQTransactionListener can support multiple.
URL: https://github.com/apache/rocketmq-spring/issues/71#issuecomment-552821789
 
 
   Can you consider the support of `@RocketMQTransactionListener` on `@Bean`?
   ```java
   @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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services