Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Session-specific eclipselink.jdbc.batch-writing.size
Session-specific eclipselink.jdbc.batch-writing.size [message #1837364] Thu, 28 January 2021 14:27
Cosmin Mendrea is currently offline Cosmin MendreaFriend
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
Previous Topic:PerformanceMonitor Log output when used in Payara
Next Topic:lazy loading vs detached objects
Goto Forum:
  


Current Time: Wed Jun 16 12:11:59 GMT 2021

Powered by FUDForum. Page generated in 0.01609 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top