The JavaDoc for the Spring SqlMapClientFactoryBean says:

"The default ExternalTransactionConfig is appropriate if there is
external transaction management that the SqlMapClient should participate
in: be it Spring transaction management, EJB CMT or plain JTA. This
should be the typical scenario. If there is no active transaction,
SqlMapClient operations will execute SQL statements
non-transactionally."

Here:

http://static.springframework.org/spring/docs/2.0-m3/api/org/springframework/orm/ibatis/SqlMapClientFactoryBean.html#setTransactionConfigClass(java.lang.Class)

Spring assumes that if you're using the SqlMapClientFactoryBean you want
to be able to Spring-wire everything, which means you don't want to use
the iBATIS txn manager.

Cheers,
Chris

On Tue, 2006-08-22 at 08:43 -0700, Mississippi John Hurt wrote:
> Is it possible to use an eternal JNDI datasource but with the internal
> Transaction Manager?
> 
> On 8/21/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
>         No. If you use the SqlMapClientDao template, Spring does it
>         all for you. All you will have to do is specify the master
>         sqlmap configuration file in spring and inject it into your
>         dao.
>         
>         
>         Mississippi John Hurt <[EMAIL PROTECTED] > wrote:
>                 yuck, so we have to configure that in spring.xml?  i
>                 looked last time, not that simple to understand.
>                 
>                 On 8/21/06, Paul Benedict <[EMAIL PROTECTED]>
>                 wrote:
>                         Spring installs the ibatis
>                         ExternalTransactionManager implementation
>                         which has no-op methods. The methods will do
>                         nothing, leaving all the transaction
>                         management up to the spring proxying. 
>                         
>                         
>                         Mississippi John Hurt <[EMAIL PROTECTED] >
>                         wrote:
>                                 Anyone have sample spring, ibatis,
>                                 config with sample code for this?  I'm
>                                 pretty certain the regular ibatis
>                                 startTransaction(), endTransaction(),
>                                 commitTransaction() wont work.
>                                 Thanks. 
>                         
>                         
>                         
>                         
>                         ______________________________________________
>                         Do you Yahoo!?
>                         Everyone is raving about the all-new Yahoo!
>                         Mail. 
>                         
>                 
>         
>         
>         
>         ______________________________________________________________
>         Get your own web address for just $1.99/1st yr. We'll help.
>         Yahoo! Small Business. 
>         
> 

Reply via email to