java - Why am I getting "is not a NamedXAResource" in Apache Karaf 4.0.4? -
i have transactional code worked in old versions of apache karaf. in apache karaf 4.0.4 see lot of exceptions.
and
i have transactional code worked in old versions of apache karaf. in apache karaf 4.0.4 see lot of exceptions.
and
i found answer , post here give others quicker way solve same problem. took me quite while , guillaume figure out. the geronimo transaction manager used in apache karaf inside aries transaction manager bundle can recover transactions. default feature switched off in older karaf versions. in apache karaf 4.0.4 has changed. the config etc/org.apache.aries.transaction.cfg contains setting it activates recovery support. downside of jdbc , jms connections must implement namedxaresource. outside standard jdbc , jms providers not support this. the solution activemq use jcapoolingconnectionfactory. jdbc can wrap xadatasource using aries transaction jdbc. provides pooling support supports recovery. if happy how application worked before can set above switch false. transactions work in older apache karaf versions. | |||
|
asked | 1 year, 7 months ago |
viewed | 319 times |
active |