Re: Re: Re: JONAS JOTM - SubCoordinator.doCommit : GotXAException fromres.commit: Cannot send res.commit:javax.transaction.xa.XAException (error code = -3) --null

"Guillaume Sauthier (OW2)" <[email protected]> Fri, 8 Jul 2011 21:06:32 +0200
Newsgroups gmane.comp.java.objectweb.jonas
Message-ID <CAG1yf3O7ZsMUt36HZ+rrFm63GybPKM8jg4ebfaaadWxX6eE3Dw@mail.gmail.com>
I don't know tyrex, so I can only help with JOTM ...
So far, what I understand is that your have 2 applications: A and B
B is connected to the database and performs its own commits.
A communicate with B using burlap protocol, so there is no Transaction
propagation between A and B.
That means that transactions on B are completely independent of transactions
on A.
That also means that if no exceptions is thrown from B when something is
going wrong, therer will be not automatic rollback of the transaction(s) on
A.

Concerning the JOTM configuration on JOnAS, there are a few things you can
do:
* change timeout (default to 60s)
* something about using a remote TM instead of a local one

BTW, A and B are both running JOnAS ?
The exceptions comes from B, right ?

--G

2011/7/7 payne.max <[email protected]>

> No multiple commits noticed when i used Tyrex with JONAS or Websphere
> transaction manager with Websphere application server.
> The only problem i had with Tyrex is a random error
> (java.lang.IllegalStateException: Cannot resume, current thread already
> associated with a transaction) so i would like to test with JOTM and it
> seems the behaviour is different as with the same code there are several
> commits inside the same transaction.
>
> On the application B i have no problem to use it: web application connected
> to Oracle database server so the transactions are managed successfully
> (begin/commit at least).
> Unfortunately i don't know excatly the kind of transactions as B is
> proprietary software and A is based on API of B.
>
> I did not find a clear documentation to understand how to use and configure
> JOTM with JONAS.
>
>
> > Message du 06/07/11 23:57
> > De : "Guillaume Sauthier (OW2)"
> > A : [email protected]
> > Copie à :
> > Objet : [jonas] Re: JONAS JOTM - SubCoordinator.doCommit : Got
> XAException fromres.commit: Cannot send
> res.commit:javax.transaction.xa.XAException (error code = -3) --null
>
> >
> > As you don't use RMI communication layer between A and B, I can't see how
> the transactions could be propagated.
> > So as a JOTM point of view, there is only 1 transaction on A.
> >
> > Do you also manage transactions (begin/commit/rollback) on B ?
> > If so, what kind ? Required/RequiresNew/Never, ... ?
> >
> > --G
> >
> >
>
> 2011/7/6 <[email protected]>
> >
>
> Hello,
> >
> > I have the following issue with JONAS included in JONAS 4.8.7:
> >
> > SubCoordinator.doCommit : Got XAException from res.commit: Cannot send
> > res.commit:javax.transaction.xa.XAException (error code = -3) --null
> >
> > The error occured in a web application A which sends requests to other
> > application B which is connected to Oracle database server.
> > The communication between two applications is done by burlap protocol.
> > Several burlap calls from A are wrapped inside the same transaction
> (begin
> > transaction - several burlap calls - end transaction).
> > The problem is that there are as many commits as burlap requests, the
> first
> > commit does not cause any issue but others cause transaction not found
> issue.
> > Is there any configuration to do in JONAS or JOTM?
> >
> > Could you help me please.
> >
> > Thank you.
> >
>
>
> >
>
>
>
> <https://compte.laposte.net/inscription/index.do?jeux=2011FOOTER_generique>