Hi OBender,
thank you very very much for your hints!!! I'll give e deep look at
the spring transaction layer implementation - I'm quite a newbie on
that area - so I'll start implementing something useful ASAP. I'll let
you know how things are going and feel free to contact us whenever you
want.
Take care, see you!
Simone

On Mon, Dec 21, 2009 at 11:08 PM, OBender <osya_ben...@hotmail.com> wrote:
> The good starting point would be to look at Spring's implementation of 
> @Transaction attribute.
> The AOP part for Guice is straightforward. The interceptor will have to have 
> ThreadLocal<SqlSession> field and injected instance of the SqlSessionFactory 
> from that point is should be able to manage transactions via combination of 
> the SqlSessionFactory.openSession(true/false)/SqlSession commit() and 
> rollback().
> Implementation of the NOT_SUPPORTED, SUPPORTS, REQUIRED levels would be 
> pretty trivial the REQUIRES_NEW will require some more dancing around 
> ThreadLocal<SqlSession> stuff.
> Since SqlSessionFactory.openSession(true/false) works with the underlying 
> transaction manager defined in the configuration we don't have to deal with 
> this stuff (transaction manager) directly I guess.
>
> -----Original Message-----
> From: Simone Tripodi [mailto:simone.trip...@gmail.com]
> Sent: Monday, December 21, 2009 4:23 PM
> To: user-java@ibatis.apache.org
> Subject: Re: Enjoy the power of iBatis3 + google-guice2
>
> Hi guys,
> thanks for your kind replies!!!
>
> @OBender: yes, the intention is absolutely realizing it, do you have
> already some idea how should it work? Not in terms of APIs that's
> clear, but in terms of implementation... Thanks in advance!!!
>
> @Clinton: thank you, and please send to us your feedbacks!!!
>
> We're open for suggestions, feedbacks, everything useful to improve
> these APIs. Unfortunately we don't have a ML and I wouldn't invade the
> proper iBatis space, so feel free to contact us directly.
>
> Btw, if the iBatis community is interested on that project we could
> arrange a close collaboration, we are open even to a code donation.
> Starting from today I'm an Apache Cocoon3 committer and already ICLA
> signed so no problems about moving the code to Apache.
>
> Best regards!!!
> Simone
>
> On Mon, Dec 21, 2009 at 7:52 PM, Clinton Begin <clinton.be...@gmail.com> 
> wrote:
>> Sounds exciting.  I also use Guice, so I'll definitely check this out.
>> Cheers,
>> Clinton
>>
>> On Mon, Dec 21, 2009 at 9:32 AM, Simone Tripodi <simone.trip...@gmail.com>
>> wrote:
>>>
>>> Hi Guys,
>>> a friend of mine and I are developing a mini-library that alleviates
>>> to the users the issue of creating and injecting iBatis objects
>>> through Google Guice 2, it is public, released under the friendly
>>> Apache 2 license and you can find it - still snapshot release - on
>>> google-code[1].
>>> It also integrates other nice tools that are perfectly designed to
>>> cooperate with iBatis, it would be nice if iBatis users that are used
>>> to DI through Guice could provide us both positive and negatives
>>> feedbacks.
>>> Best Regards,
>>>
>>> Simone Tripodi
>>> Marco Speranza
>>>
>>> [1] http://ibaguice.googlecode.com/svn/site/1.0-SNAPSHOT/index.html
>>>
>>> --
>>> http://www.google.com/profiles/simone.tripodi
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
>>> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>>>
>>
>>
>
>
>
> --
> http://www.google.com/profiles/simone.tripodi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>
>



-- 
http://www.google.com/profiles/simone.tripodi

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to