You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "vanniuner (via GitHub)" <gi...@apache.org> on 2023/06/06 11:32:54 UTC

[GitHub] [shardingsphere] vanniuner opened a new issue, #26080: SeataATShardingTransactionManager config with nacos

vanniuner opened a new issue, #26080:
URL: https://github.com/apache/shardingsphere/issues/26080

   ## Feature Request
   I'm wonder how to config SeataATShardingTransactionManager with nacos in springcloud project.
   This was what I want,but the while will never out. I have no idea about this.
   ```
       public SeataATShardingTransactionManager() {
           log.info("==== [SeataATShardingTransactionManager.init]: {}");
           while (SpringBeanContext.getContext() == null) {
               try {Thread.sleep(1000L);}
               catch (InterruptedException e) {e.printStackTrace();}
               log.info("==== [SeataATShardingTransactionManager.wait..]: {}");
           }
           NacosConfig nacosConfig = SpringBeanContext.getContext().getBean(NacosConfig.class);
           enableSeataAT           = true;
           applicationId           = nacosConfig.getApplicationName();
           transactionServiceGroup = nacosConfig.getTxServiceGroup();
   ```
   
   ### Describe the feature you would like.
   I just want make nacos configuration to be an replacement of seata.conf.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org