so to make it work I should use a non-singleton class? But this would mean that each transaction would use a different instance of the XAResource. Doesn't it? And if so It would be a problem, because I use this resource to simulate a phisic resource (e.g a database) and so it should be unique. thanks sergio
--- Dasarath Weeratunge <[EMAIL PROTECTED]> ha scritto: > Quoting sergio salvi <[EMAIL PROTECTED]>: > > > I've developed a service using Kandula. > > when I run it the first time it works but when I > try > > to execute multiple client that simultaneously > invoke > > the service many transactions throw a > > rollbackException caused probably by the > 'prepare'. > > in attached there is the source code of the > XAResource > > that implements the prepare function. > > Is it possible that the problem lies on the > > getInstace() function? > > > If I understand this correct you have a singleton > class which is used as the > resource in several transactions. However, in the > prepare method, if the Xid is > not the one stored in the tx attribute you throw an > exception. So, now > think... :-) > > thanks, > --dasarath > > > > > > thanks > > > > Sergio > > > > __________________________________________________ > > Do You Yahoo!? > > Poco spazio e tanto spam? Yahoo! Mail ti protegge > dallo spam e ti da tanto > > spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
