Comments (7)
As per specification, Section 9.3.6 EJBTransactionRolledbackException
should be thrown if instance is part of client's transaction, otherwise for a remote client jakarta.transaction.TransactionRolledbackException
is thrown and for a local client jakarta.ejb.TransactionRolledbackLocalException
is thrown.
from enterprise-beans.
@hussainnm the spec section you quoted supports the claim of this issue, that is, EJBTransactionRolledbackException
is intended for both remote and local invocations of ejb business methods, and therefore, its javadoc needs to be updated to reflect that. I suspect the javadoc description was an oversight.
from enterprise-beans.
My understanding is when the EJBTransactionRolledbackException
and TransactionRolledbackLocalException
were introduced in 2.0, one was meant for remote client and the other was meant for local client. EJBTransactionRolledbackException
should be thrown if and only if the business interface does not extend java.rmi.Remote
in remote client otherwise it should throw jakarta.transaction.TransactionRolledbackException
.
from enterprise-beans.
This is how I understand it:
EJB 2.x:
remote client: jakarta.transaction.TransactionRolledbackException
local client: jakarta.ejb.TransactionRolledbackLocalException
EJB 3:
any client (both local and remote) of ejb that does not extend java.rmi.Remote
(that is 99.9% of case): EJBTransactionRolledbackException
. This is the focus of this issue. Any remote ejb3 beans that extend java.rmi.Remote
is rare case and for practical purpose, we can just ignore it.
from enterprise-beans.
Ok, got it.
from enterprise-beans.
Hey @chengfang I think we are good with this issue now. Can we close?
from enterprise-beans.
The fix has been merged and this issue is resolved.
from enterprise-beans.
Related Issues (20)
- EJB tests dependant on JAX-RPC, have been pruned in Jakarta EE 9 CTS HOT 1
- Interop tests have been pruned in Jakarta EE 9 CTS
- Update signature tests for repeatable @Schedule HOT 1
- Add tests for repeatable @Schedule
- Create Contribution Questionnaire for 4.0.0
- 4.0.0 Release finalization steps HOT 10
- 4.0.0 EJB Staging duplicate HOT 4
- Compatibility certification request for Eclipse Glassfish 6.0 for Enterprise Beans 4.0 (part of Jakarta EE 9) HOT 1
- [TCK] EJB 3.2 timers issue with endDate HOT 2
- [TCK] Read-only naming context and close() HOT 4
- [spec] Broken links in Specification documents
- We need a 4.0.1 service release to add module-info.class
- Allow Schedule attributes loaded from Jakarta Config
- Add cron expression support in Schedule
- Add simple fixed rate support in Schedule
- Upgrade jakarta.transaction-api from 2.0.0 to 2.0.1
- Timer schedule increment value 0 HOT 1
- Security Best Practices
- Lost user context in EJB @Remote inside ManagedBean HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enterprise-beans.