Unfortunately, there is more than one file and it will look unreadable
here. All code can be accessed on github via the link I've provided earlier.
Evgenii
2018-01-30 7:10 GMT+03:00 Amir Akhmedov :
> You need to register a bean as follow
>
> class="org.apache.ignite.transactions.spring.SpringTr
You need to register a bean as follow
Please check the link a sent you earlier it has tests with all
required configurations. It can serve as a good example.
Hi Amir,
How to registered Ignite's Spring Transaction Manager?
Would you mind share your code...
Thanks for your help Amir
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Hi Evgenii ,
Yes i have try that. Without Spring Transaction.
private int sequenceManual(String seqName) {
int seq = 0;
Query query;
try {
em.getTransaction().begin();
query = this.em.createNativeQuery("UPDATE SEQUENCE SET SEQ_COUNT =
SEQ_COUNT + " + INCREMENT + " WHERE SEQ_NAME =
Also, please make sure you registered Ignite's Spring Transaction Manager.
As an example for Ignite and Spring Transaction you can check
https://github.com/apache/ignite/tree/master/modules/spring/src/test/java/org/apache/ignite/transactions/spring
Thanks,
Amir
On Mon, Jan 29, 2018 at 9:38 AM, ez
Hi,
I think now you need to start and commit transaction manually in your code:
em.getTransaction().begin();
em.getTransaction().commit();
At least I've tried it some time ago and it worked. Please check this
example on github:
https://github.com/ezhuravl/i
Hi,
First of all, yes I know Apache Ignite not support SQL Transaction. I hope
this is not showstopper of my POC.
I`m here to find another way.
1. I have function for update sequence table.
private int sequenceManual(String seqName) {
int seq = 0;
Query query;
try {