heliang666s commented on issue #16000: URL: https://github.com/apache/dubbo/issues/16000#issuecomment-3803387861
This is not a transactional annotation failure, but a consequence of **different entry methods generated by Dubbo Triple**. For the Triple protocol, RPC calls actually enter the **generated service entry method** (e.g. `greet(req, StreamObserver)` or its async variant), not the `greet(req)` method where `@Transactional` was added. The current call path invokes `greet(req)` via **self-invocation**, which is not intercepted by Spring AOP, so the transaction does not take effect. To make transactions work for RPC calls, `@Transactional` must be applied to the actual RPC entry method, the class itself, or the transactional logic should be moved to another Spring Bean and invoked through a proxy. @cuihaohao -- 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]
