slievrly commented on issue #6249:
URL: 
https://github.com/apache/incubator-seata/issues/6249#issuecomment-1948401532

   > i try to find some solutions in spring, like : 
[spring-cloud/spring-cloud-sleuth#1508](https://github.com/spring-cloud/spring-cloud-sleuth/issues/1508)
 , there are basically three solutions:
   > 
   > 1. mark @lazy on dependency
   > 2. injection beanFactory, dynamic get bean to use when needed.
   > 3. mark the depend bean as @ROLE(BeanDefinition.ROLE_INFRASTRUCTURE).
   > 
   > in our case, globalTransactionScanner depend many properties, main do init 
client & generate proxy. does anyone have good idea to fix the issue.
   
   globalTransactionScanner should depend on Spring's event notification to 
solve this issue. We can't enumerates all beans, including business beans that 
we don't know.


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

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to