However, if you have a daomanager then you should not use the mapclient again in your dao, they will be different transactions. If you do not want to use the daomanager, do the insert and delete with the same mapclient.
Again, before you are too late and things get out of hands, it will be a strong suggestion to get a dao manager as a delegate or a service layer as mentioned above.
On 7/17/06,
Bing Lu <[EMAIL PROTECTED]> wrote:
Do I have to get a DAOManager, I can just do a
startTransaction and endTransaction just using the
sqlMapClient right?
--- hicham abassi <[EMAIL PROTECTED]> wrote:
> You must implement a service layer to be able to
> call 1,n dao and
> implement transaction management
>
> Look at this page :
>
http://svn.apache.org/repos/asf/ibatis/trunk/java/jpetstore/jpetstore5/src/com/ibatis/jpetstore/service/OrderService.java
>
> especially this method : insertOrder(Order order)
>
> On 7/17/06, Bing Lu < [EMAIL PROTECTED]> wrote:
> > Hi, how do I do a delete&insert operation in one
> > transaction in ibatis? do I need to specify
> anything
> > in the transactionManager for this?
> >
> > thanks
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
