Return-Path: Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 66787 invoked by uid 99); 6 Feb 2005 07:31:28 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ctb-mesg1.saix.net (HELO ctb-mesg1.saix.net) (196.25.240.73) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 05 Feb 2005 23:31:28 -0800 Received: from [192.168.0.2] (rndf-146-46-87.telkomadsl.co.za [165.146.46.87]) by ctb-mesg1.saix.net (Postfix) with ESMTP id 464975535 for ; Sun, 6 Feb 2005 09:31:23 +0200 (SAST) Message-ID: <4205C7CC.4070500@isanusi.com> Date: Sun, 06 Feb 2005 09:31:24 +0200 From: Abdullah Kauchali User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ibatis-user-java@incubator.apache.org Subject: Re: iBatis and EJB References: <20050205223119.85963.qmail@web52207.mail.yahoo.com> <420565CC.70501@isanusi.com> <4205958D.2050507@friendvu.com> In-Reply-To: <4205958D.2050507@friendvu.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked friendVU admin wrote: > Did you ask if distributed 2 phase commits are done without EJB? > Of course! You can do that in iBatis by itself. And in Tomcat or Resin > by itself. > sqlMap or JBDC.commit() or rollback(). > Or even in SQL by itself. > No, no ... I know we can do 2-phase commits without EJB's. What I'm asking is whether it is possible to create *one* implementation of a DAO that behaves differently when under an EJB context and differently when *outside* an EJB context? I'll give you an example: Suppose there is an insertProducts SQLMap with its appropriate DAO class that manages the execution of the insert statement *but* in a local transaction scenario only. Now, suppose we want to expose that same SQLMap to other development environment that want to participate with insertProducts transactionally but with 2PC. Is it possible to wire only the EJB specific classes on top and deploy it, or do you have to create an entirely separate DAO that has EJB logic in it and then dish out that new API to the external developers? Sorry for the confusion .... It's not a serious question ... yet ...I am under stress here on another stupid project ... I keep reading the iBatis stuff because it is too interesting. :) Regards Abdullah