I need some help in applying Warp to my case:
We have dozens of databases: 1 for each sub-domain.
Each database is invoked when a certain id parameter is passed in an
http request.
So, if id=1, update database_1, id=2 update databse_2, so on.
We are using JPA EntityManagerFactory configured on the app startup
and stored in the app memory.
persistence.xml is only used as a template.
Also, we are using Guice Method Interception Injection now. The
interceptor has access to the id, based on which
it creates ThreadLocal JPA EntityManager for the db. We begin and end
transaction around the method call.
Works fine; however, I'd like to use Warp to be able to annotate
classes and use many other neat warp features.
The question is: Is there way to bind the correct EntityManager to the
transaction based on the id.
Would be nice to be able to customize Transactional method interceptor
ourselves to obtain that db id based on different scenarios.
Please help!
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "warp-core" group.
To post to this group, send email to warp...@googlegroups.com.
To unsubscribe from this group, send email to warp-core+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/warp-core?hl=en.