Hi Armin,
I was using a DataSource (in Websphere) from the Jdbc Provider
oracle.jdbc.pool.OracleConnectionPoolDataSource and using the PB-tx-demarcation
(broker.beginTransaction().....). When I changed the datasource to
oracle.jdbc.xa.client.OracleXADataSource the application shows this exception when
commit is called :
46563 ERROR accesslayer.ConnectionFactoryAbstractImpl - Closing connection failed
com.ibm.ejs.cm.exception.WorkRolledbackException: Outstanding work on this connection
which was not comitted or rolledback by the user has been rolledback.
at
org.apache.ojb.broker.core.DelegatingPersistenceBroker.commitTransaction(DelegatingPersistenceBroker.java:145)
at
br.com.equifax.dataqa.procir.persistencia.dao.OjbParametroDAO.findAllParametro(OjbParametroDAO.java:258)
Do you know what I am doing wrong ?
--- Mensagem Original ---
> Hi Leandro,
>
> Leandro Augusto de Almeida wrote:
>
> > Is it possible to use PB-tx-demarcation on a
> session bean with bm-tx and getting a connection
> from a DataSource from my AppServer? Is it
> right? What is the correct connection factory to
> use?
> > Or I must use the user (JTA) tx-demarcation
> with the ConnectionFactoryManagedImpl and choose
> between cm-tx or bm-tx?
> >
>
> yep, in managed environments you have always to
> use JTA (except you
> don't want to use distributed tx at all and set
> tx-demarcation to
> 'none'). All settings described here
>
>
> http://db.apache.org/ojb/deployment.html#Deployment%20in%20EJB%20based%20applications
>
>
> regards,
> Armin
>
> > Thanks,
> >
> > Leandro.
> >
> >
> ---------------------------------------------------------------------
>
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]