I cannot find a way to set TransactionIsolation in ejb. Can someone tell me how I installed it? I use perseverance.
I looked at the following classes: EntityManager, EntityManagerFactory, UserTransaction. None of them seem to have a setTransactionIsolation method or such. Do I need to modify persistence.xml?
I just read a book called Mastering EJB 3.0 4th Edition. They gave a complete 10-page theory about the level of isolation, that these problems arise, and what happens, and such things, but in the end they gave this paragraph: -
"As we now know, the EJB standard does not deal with isolation levels directly, and rightly so. EJB is a component specification. It defines the behavior and contracts of a business component with clients and middleware infrastructure (containers) such that the component can be rendered as various middleware services properly. EJBs therefore are transactional components that interact with resource managers, such as the JDBC resource manager or JMS resource manager, via JTS, as part of a transaction. They are not, hence, resource components in themselves. Since isolation levels are very specific to the behavior and capabilities of the underlying resources, they should therefore be specified at the resource API levels. "
What exactly does this mean? What does resource level APIs mean? Please help me. If perseverance does not have a way to establish the level of isolation, then why do they give such a huge theory in the EJB book and make it heavy in weight without the need: (
source share