Hi Matthias,
[EMAIL PROTECTED] wrote:
Hello We use OJB in a websphere z/OS environment. If I set the
PersistenceBrokerFactoryClass to PersistenceBrokerSyncImpl as it is recommended in the documentation I get following error if I try to
insert, update
or delete some thing:
Exception data: java.lang.UnsupportedOperationException: In managed environments only JTA transaction demarcation allowed
at
org.apache.ojb.broker.core.PersistenceBrokerFactorySyncImpl$PersistenceBroke
rSyncImpl.beginTransaction()
In managed environments the tx handling/demarcation is done by JTA, so it's no longer allowed to use the PB-tx demarcation.
If I use the PersistenceBrokerFactoryDefaultImpl every thing works 'fine' (only the broker get out of synch with the container one time per day).
If you use websphere as simple servlet engine without distributed tx, there is no need to use the JTA integration supported by PBFSyncImpl. If you use JTA it's mandatory to use PBFSyncImpl and JTA-tx demarcation.
regards, Armin
Can some one Help?
Matthias Roth
Bundesamt f�r Informatik und Telekommunikation BIT Office f�d�ral de l'informatique et de la t�l�communication OFIT
Ufficio federale dell'informatica e della telecomunicazione UFIT Monbijoustrasse 74, CH-3003 Bern
Tel. ++41 (0)31 325 84 68 Mobile ++41 (0)79 307 45 29
Fax ++41 (0)31 325 97 54
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.bit.admin.ch/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
