[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] How to tell EL to hold an extra database connection for primary key generation
|
In persistence.xml specify "eclipselink.jdbc.sequence-connection-pool"
property with value "true"
You don't need anything else if you don't use JTA
(TransactionType.RESOURCE_LOCAL);
If you use JTA (TransactionType.JTA):
sequencing connection pool must use non jta data source, therefore if
you use JTA, then you have to additionally specify a non jta data source.
Specify it using either "non-jta-data-source" element in persistence.xml
(then the data source will be used for sequencing and reading outside
transactions); or alternatively specify it in
"eclipselink.jdbc.sequence-connection-pool.non-jta-data-source" property
(then the data source used by sequencing only).
On 2/21/2012 11:06 AM, Michael Simons wrote:
Hello,
We're using EL 2.1.2 within Geronimo.
We are using GenerationType.TABLE to generate primary keys.
What do I have to do so EL uses an extra connection (transaction) to obtain the next bunch of primary key values.
Kind Regards,
Michael Simons
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users