Return-Path: Delivered-To: apmail-db-ojb-user-archive@www.apache.org Received: (qmail 91319 invoked from network); 13 Jun 2005 05:53:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2005 05:53:43 -0000 Received: (qmail 16506 invoked by uid 500); 13 Jun 2005 05:53:40 -0000 Delivered-To: apmail-db-ojb-user-archive@db.apache.org Received: (qmail 16486 invoked by uid 500); 13 Jun 2005 05:53:39 -0000 Mailing-List: contact ojb-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Users List" Reply-To: "OJB Users List" Delivered-To: mailing list ojb-user@db.apache.org Received: (qmail 16453 invoked by uid 99); 13 Jun 2005 05:53:39 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail12.admin.ch (HELO mail12.admin.ch) (162.23.32.12) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Jun 2005 22:53:36 -0700 Received: from mar02.bb.admin.ch (mar02.bb.admin.ch [193.5.222.72]) by mail12.admin.ch (mailout) with ESMTP id AA1681C00364 for ; Mon, 13 Jun 2005 07:30:32 +0200 (CEST) Received: from mas32.bb.admin.ch ([193.5.222.85]) by mar02.bb.admin.ch (8.12.10/8.12.10) with ESMTP id j5D5UVV3016936 for ; Mon, 13 Jun 2005 07:30:31 +0200 (METDST) Received: from ad01008exc.ad.admin.ch ([131.102.107.145]) by antivir.admin.ch with InterScan Messaging Security Suite; Mon, 13 Jun 2005 07:30:30 +0200 Received: by ad01008exc.ad.admin.ch with Internet Mail Service (5.5.2657.72) id ; Mon, 13 Jun 2005 07:30:29 +0200 Message-ID: From: Claude.Glauser@bit.admin.ch To: ojb-user@db.apache.org Subject: AW: CMT and OJB Date: Mon, 13 Jun 2005 07:30:26 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks a lot for your answer! Yes, I will appreciate a feature to turn on or off "checkForTx" in OJB.properties :) With best regards, Claude -----Urspr=FCngliche Nachricht----- Von: Armin Waibel [mailto:arminw@apache.org]=20 Gesendet: Freitag, 10. Juni 2005 20:57 An: OJB Users List Betreff: Re: CMT and OJB Hi, Claude.Glauser@bit.admin.ch wrote: > Hi, > =20 > I have an application server WebSphere 5.1 and I must do Container=20 > Managed Transactions (CMT) with OJB. There is only PB-API involved.=20 > Unfortunately, there is very little documentation on this topic. Maybe someone is willing to write a howto ;-) > Now my question: > =20 > If I don't call the method PersistenceBroker.beginTransaction() and > PersistenceBroker.commitTransaction() everything seems to work.=20 > Rollbacks work. But there is a warning message similar to: "WARN: No=20 > tx found. Please use tx to avoid side effects...". What are those=20 > sideeffects? Is there some cleanup OJB does while committing? I've=20 > seen some hashtable activity stuff in the OJB-sourcode. We don't use=20 > OJB-Cache. > This warning was introduced to prevent user in non-managed environments = storing objects without a running tx. Without PB-tx the autocommit = state=20 of the used connection is on (by default), thus when storing an object=20 with references or a bunch of objects a rollback of all objects is not=20 possible. > Why has OJB to be "transaction aware" at all, since I don't use=20 > OJB-Cache. > =20 In managed environments without using a cache it's completely different = and the warning is needless and confusing. Should introduce a property 'checkForTx' in OJB.properties to=20 en-/disable this behavior, instead always check for tx? regards, Armin > Thx for your replies! > =20 > =20 > =20 > =20 > =20 > =20 > =20 > =20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org For additional commands, e-mail: ojb-user-help@db.apache.org