Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

J2CA0086W: Shareable connections are not allowed within a local transaction containment boundary

844 views
Skip to first unread message

Daniel Chan

unread,
Mar 10, 2003, 10:39:04 AM3/10/03
to
Hi,

log in WebSphere 5 shows the following error:
J2CA0086W: Sharable connection MCWrapper id 757dc2e Managed connection
com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl@3c8dc2e
State:STATE_TRAN_WRAPPER_INUSE from resource jdbc/oracle was used
within a local transaction containment boundary.

Explanation: Shareable connections are not allowed within a local
transaction containment boundary.


Can someone help me fix this problem? Thanks.

Daniel

Daniel Chan

unread,
Mar 11, 2003, 5:24:33 AM3/11/03
to
The message happens when dataSource.getConnection() is called twice in
a servlet. The datasource jdbc/oracle is lookup from local reference.

daniel_...@mail.hongkong.com (Daniel Chan) wrote in message news:<1fe9d8c0.03031...@posting.google.com>...

Mark Watzdorf

unread,
Mar 12, 2003, 2:50:56 AM3/12/03
to
Why are you calling it twice? Call it once and reuse the connection.
Or call con.close() before doing the 2nd getConnection()
0 new messages