by Alex 30 Jul 21:02
springframework question

Rob,

How do I configure spring to take care of my transactions. All I want is spring declarative transactions to be backed by jdbc transactions. Do I need to do anything extra for Ebean?

Second question is how hard is it to make query and sqlquery objects serializable and then add a method like Ebean.executeQuery(Query qry)?

Thanks,
Alex

09 Aug 11:28
by Rob

At the mo I don't have the code in front of me (on holiday at moment) but some part answers...

> Spring Declarative transactions...
I think Ebean does need to do something here. From memory my thoughts were that with Spring you'd use the standard spring jdbc transaction manager (rather than a Ebean specialised one) and Ebean could be configured to pick up the java.sql.Connection from the thread local that spring uses... and wrap them for use in Ebean.

I didn't get time to actually do it... but that was my initial plan/thought.

> query and sqlQuery serializable...
Yes, that should have been done. My mistake for missing that :(

Create a New Topic

Title:
Body:
 
Introduction User Guide (pdf) Install/Configure Public JavaDoc Whitepapers
General Database Specific Byte Code Deployment Annotations Features
Top Bugs Top Enhancements
woResponse