So I am configuring the second level cache on the persistence.xml, but I
have two persistence units.
For both I defined the same factory class and instance name.
Then I get an error on server startup that Ignite instance already exist.
Is there anyway to create the Ignite instance as a singleton?
Anyway, any example of Ignite as Hibernate L2 Cache for JEE will be a great
On a slightly different note, I'm going through a similar exercise with
Hibernate 5.2.x using Spring. What I've found is that the hibernate_5.1
library provided by Ignite will not work with Hibernate 5.2.x.
I just went through the exercise of updating the current library to work
with Hibernate 5.2.x. I'll most likely post these changes to my github to
be contributed at some point if someone doesn't beat me to it.
For your immediate error I'd try Ignition.getOrStart(...) when instantiating
Ignite to avoid those errors.