AW: [OJB-developers] Some PersistenceBrokerImpl questions
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-01-25 10:13:18
|
Hi Daniel, > Hi Thomas. > > I have some questions about PersistenceBrokerImpl, as you > know I'm working on JTA support for OJB, I have started with > the PersistenceBroker interface, and then if everything goes > fine will take a look at the ODMG interface. > > I'm basically working with four methods, they are > abortTransaction(), beginTransaction(), commitTransaction() > and checkPoint(). Last two seems to be very similar, could > you clarify me what checkPoint() is used for and why it > should commit a transaction? In PersistenceBrokerImpl the difference is as follows: checkPoint() simply applies commit() to all Jdbc Connections the broker is holding. commitTransaction does the same but in addition it sets conn.setAutoCommit(true) for each Jdbc Connection. I'm not sure if the checkPoint Method is really needed. It is called in client server mode for store operations, but I'm not sure if it is really required. I guess it's OK if you focus on commitTransaction(). HTH, Thomas > > thanks in advance. > > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectbridge-developers > |