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:
[email protected]


With regards,
Apache Git Services

Reply via email to