|Session-specific eclipselink.jdbc.batch-writing.size [message #1837364]
||Thu, 28 January 2021 14:27
| Cosmin Mendrea
Registered: July 2009
We would like to use a different value for "eclipselink.jdbc.batch-writing.size" just in a specific scenario (for some data import) and in the rest of our use cases use the value set in the persistence.xml.
What we tried in a stateless bean:
private EntityManager manager;
Session session = manager.unwrap(Session.class);
Although the above cod does change the used batch write size, I was surprised, to say so, that the batch write size is still 200 before I would execute the above code again, but I was expecting for it to be reset to the value from persistence.xml.
Are we doing something wrong? Does EclipseLink actually support this scenario?
EclipseLink 2.6.5 in Payara 184.108.40.206
Powered by FUDForum
. Page generated in 0.01823 seconds