I have read about TransactionAttributeType.REQUIRED that
If the client is running within a transaction and invokes the enterprise bean’s method, the method executes within the client’s transaction. If the client is not associated with a transaction, the container starts a new transaction before running the method.
The client is an EJB application deployed on server A, and invokes a method methodB of another bean that is deployed on another server B within a transaction. If methodB has TransactionAttributeType.REQUIRED, then it'll run under the same transaction as started by the client application. Right?
If yes, then how does the application deployed on different server know about the transaction started on another server?
If no, then how does methodB use the same transaction?
I am somewhat new to EJB so please go easy on me. Any pointer to the right direction will be highly appreciated.