Re: [Resin-interest] specify data source for ejb manager

2014-01-10 Thread Riccardo Cohen
Thanks Scott. I managed to retreive information from 2 db with EntityManagerFactory associated correctly with the good database, thanks to jta-data-source parameter in persistence.xml. But for updating the database the factory is useless and I need to use a global injected EntityManager with

Re: [Resin-interest] specify data source for ejb manager

2014-01-09 Thread Scott Ferguson
On 1/3/14, 5:15 AM, Riccardo Cohen wrote: Hello I will soon have more than one mysql server. I want to use one server for read requests of static data, the other for read/write requests of dynamic data. It works for sql requests through datasource, but I cannot find how to do it with ejb