I get the following exception when trying to update two BMP beans from a servlet: [9/15/03 10:08:52:714 EDT] 4c5cbaa TransactionIm E WTRN0062E: An illegal attempt to use multiple resources that have only one-phase capability has occurred within a global transaction. Here's the code that causes that:
Update method grabs a connection from a datasource, creates a statement and then runs a query on it. The exception seems to occur during the second update, in fact, if I comment it out everything works fine. Any ideas?
posted 17 years ago
NM. Solved the problem by making the connection shareable.