Hi Faizal,

I've just uploaded the patch for DataSourceFactory to the JOnAS mailing
list. Within my patch, the modified XAResourceImpl is also included. I
modified it based on the solution 2 in my previous posting.

As far as I know, the problem you encountered never occurred with my
modified XAResourceImpl.
So, please try it and tell me your result.

Jun Inamori wrote:
> 
> Hi again,
> 
> In my previouse message, I forgot the one thing.
> 
> > Solution 2
> > In any case, after Current.commit() is invoked, the instance of
> > XAResource which participated in the transaction should be marked as
> > 'ended'.
> > This can be done by:
> >
> >    if (xa_started) {
> >       xa_started=false;
> >    }
> >
> > within XAResource.commit(Xid,boolean) .
> 
> The same is true for:
>         XAResource.rollback(Xid)

-- 

Happy Java programming!

Jun Inamori
E-mail: [EMAIL PROTECTED]
URL:    http://www.oop-reserch.com

S/MIME Cryptographic Signature

Reply via email to