[Seasar-user:11570] Re: requiresNewTxにてcommit時に例外が発生した場合にRollbackされない

鈴木 順 [E-MAIL ADDRESS DELETED]
2007年 11月 9日 (金) 17:40:43 JST


小林さん

お世話になっております。鈴木です。

とりあえず発生している例外に関してIBMに問い合わせをしえられた回答を
お伝えします。

J2CA0058E は多くはアプリケーションエラーとなります。
トランザクションとコネクションの関係を見直してください。

入れ子ということですので、例えば、内側のトランザクション内で、外側のトラン
ザクションで取得したコネクションを参照するといったことがないかご確認くださ
い。

InfoCenter では以下の記述となります。

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/topic/com.ibm.websphere.messages.doc/com.ibm.ws.j2c.resources.J2CAMessages.html

J2CA0058E: The ConnectionManager was unable to associate Connection {0}
with ManagedConnection {1} for resource {3}. Received exception: {2}
Problem Usually this is due to an application error. An example : A cached
connection is enlisted in a transaction, then the connection is closed.
Before the transaction completes another request is sent to the same EJB
that originally opened the connection. The cached handle is still
associated with the original transaction and cannot be reassociated until
that transaction commits.
User response Check the application and make sure that the transaction is
committed as soon as possible after connections are closed.

===============ここまで回答=============================

とりあえずS2SessionFactoryにデバッグ文を入れて同じコネクションを
使用しているか否かを確認してみます。

以上





Seasar-user メーリングリストの案内