Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [gyrex-dev] org.eclipse.gyrex.persistence

Hi Tomas,

Great to hear back from you!

Am 22.07.2013 um 12:08 schrieb Tomas Tamošaitis <siena@xxxxxxxxx>:
> Thanks for leading me to right direction. It was very helpful. Also i used gyrex Slor implementation and persistence injection tests as an example in some cases.
> Definitely some simplicity will be helpful.

Oh yeah, this is pretty deep dive into infrastructure and it should be simpler for developers that just want to "use" this stuff. Please let me know of any improvements you are thinking about.

> Also i found some issues in gyrex EclipseLinkRepositoryImpl.
> Then external data source are set as  NON_JTA_DATASOURCE, EclipseLink doesn't shares connection for sub query's during entity read from database. then i user Apache DBCP data source implemetation it fails with "Metohd not supported" exception.
> Then changed datasource type to JTA_DATASOURCE it starts behave in normal way (connections was shares for sub query's)

II do remember that I had to pick the NON_JTA_DATASOURCE property for getting it to work with MongoDB. But that's a pretty specific use-case. It probably needs to be configurable. Did you ask on the EclipseLink forum why this is different when using a JTA data source (independent from the connection pool)? Using a JTA DataSource seems wrong to be because we do not really "manage" transactions currently. I could imagine to implement some basic support for this but I haven't investigated this further.

-Gunnar

-- 
Gunnar Wagenknecht
gunnar@xxxxxxxxxxxxxxx







Back to the top