ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: converting iBATIS framework DAOs to the Spring Framework
Date Mon, 16 Apr 2007 13:10:14 GMT
Hmm, I think I'd rather add cglib than give up transactions in the
service layer.

It's another jar, but reduces complexity (that's unusual when you
*add* a jar), and puts transaction management where it belongs, IMO.


On 4/16/07, Meindert <meindert@pastelebusiness.com> wrote:
> Had a closer look at it and the logical reason the proxy could not be
> generated is the fact the service classes (in JPetstore) don't use an
> interface.
> I would like to keep it that way, because the reason's I heard for giving it
> an interface are not convincing (reasons like 'it is the right thing to do',
> 'easy interchange of implementations') .
> So (for now) I would say that it is not possible to have a transaction in
> the business logic (if the business logic doesn't implement a interface).

View raw message