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:
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?

Thank you!

EclipseLink 2.6.5 in Payara
Previous Topic:PerformanceMonitor Log output when used in Payara
Next Topic:lazy loading vs detached objects
Goto Forum:

Current Time: Wed Jul 24 19:46:21 GMT 2024

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

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

Back to the top