upgrading from old version  defaults to wrong TransactionManager
----------------------------------------------------------------

         Key: IBATIS-20
         URL: http://nagoya.apache.org/jira/browse/IBATIS-20
     Project: iBatis for Java
        Type: Bug
 Environment: jboss 3.2.1, iBatis 2.0.8 (upgraded from iBatis 1.2.9)
    Reporter: alex mccarrier


We are using EJB to demarcate transactions.  Old iBatis sql config file 
contained this:

    <settings useGlobalTransactions="true"
              cacheModelsEnabled="true" />

            <datasource name="snmDataSource"
                        
factory-class="com.ibatis.db.sqlmap.datasource.JndiDataSourceFactory"
                        default="true" >
                        <property name="DBFullJndiContext" 
value="java:/DataSource" />
            </datasource>

Which configured iBatis to use external global transaction management, which 
from the documentation I understand this to be the default unless I specify to 
use Managed Global Transactions by including settings attribute called 
"userTransactionJndiName" (iBatis 1.2.9 manual, pp 39-40).

When iBatis 2.0.8 tries to do the conversion, it defaults to Managed Global 
Transactions, then throws a ClassCastException because it can't find a 
UserTransaction object at jndi name "" (because there is none specified).




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to