On Jun 8, 7:58 am, Luke Lappin <
lukelap...@gmail.com> wrote:
> Do you mean the InTransaction example on the link you gave? It seems in that type of transaction I can only use one DAO and I need multiple. Do you have any sample code? I also did try to use the keyword begin and it did not seem to change this behavior. Thanks.
>
> On Jun 8, 2012, at 2:23 AM, Christopher Currie <
christop...@currie.com> wrote:
>
>
>
>
>
>
>
> > In the 'non working' example, you don't appear to have a call to 'begin' on your DAO, which is required to start a transaction and disable autocommit mode on MySQL.
>
> > I really strongly recommend using the 'withTransaction' API, to let JDBI handle the low level begin/commit details automatically for you, unless you have a use case that prevents it.
>