0 votes
17 views

How EJB Container handles exceptions?

in Technology by (192k points)

1 Answer

0 votes
When Application Exception occurs, ejb container intercepts the exception but returns the same to the client as it is. It does not roll back the transaction unless it is specified in code by EJBContext.setRollBackOnly() method. EJB Container does not wrap the exception in case of Application Exception.

When System Exception occurs, ejb container intercepts the exception, rollbacks the transaction and start the clean up tasks. It wraps the exception into RemoteException and throws it to the client.
by (192k points)

Related questions

0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 9 views
9 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
0 votes
1 answer 22 views
0 votes
1 answer 24 views
24 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 35 views
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 18 views
18 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 44 views
44 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 22 views
22 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 28 views
28 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
15 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 110 views
0 votes
1 answer 23 views
0 votes
1 answer 13 views
0 votes
1 answer 16 views
0 votes
1 answer 23 views
23 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 13 views
13 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 36 views
36 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 15 views
0 votes
1 answer 31 views
31 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 30 views
30 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
0 votes
1 answer 16 views
16 views asked Nov 7, 2020 in Technology by JackTerrance (192k points)
...