Wie kann ich die set Transaction Isolation bei EJB?

Ich bin nicht in der Lage, einen Weg finden, TransactionIsolation in ejb. Kann mir jemand sagen, wie muss ich es einstellen? Ich bin mit Persistenz.

Habe ich die folgenden Klassen :
EntityManager , EntityManagerFactory, UserTransaction. Keiner von Ihnen scheint jede Methode wie setTransactionIsolation oder so. Müssen wir ändern persistence.xml?

Gerade lese ich ein Buch namens Mastering EJB 3.0, 4. Auflage. Sie gab eine volle 10 Seite Theorie über die Isolation-level, dass diese Probleme auftreten und tritt, und solche Dinge, aber am Ende Gaben Sie diesem Absatz :-

"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. "

Was bedeutet es genau? Was bedeutet Ressourcen-level-APIs? Bitte helfen Sie mir. Wenn Beharrlichkeit hat keine Möglichkeit zur Einstellung der Isolationsstufe dann, warum geben Sie solche riesige Theorie in einem EJB-Buch und machen es schwer, Gewicht unnötig 🙁

InformationsquelleAutor TCM | 2010-04-15
Schreibe einen Kommentar