Session-specific eclipselink.jdbc.batch-writing.size [message #1837364] |
Thu, 28 January 2021 14:27 |
Cosmin Mendrea Messages: 2 Registered: July 2009 |
Junior Member |
|
|
Hello all,
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:
-
@PersistenceContext
private EntityManager manager;
....
Session session = manager.unwrap(Session.class);
session.getLogin().setMaxBatchWritingSize(200);
doImport();
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?
Thank you!
EclipseLink 2.6.5 in Payara 4.1.2.191
|
|
|
Powered by
FUDForum. Page generated in 0.02012 seconds