----- Original Message -----
From: "alex orl" <alex_orl1079(a)yahoo.it>
To: keycloak-dev(a)lists.jboss.org
Sent: Monday, 7 September, 2015 6:14:38 PM
Subject: [keycloak-dev] User Federation Provider with JPA
I'm developing a keycloak user-federation-provider and i need to integrate it
with the JPA persistence system in order to write on my legacy db and on the
keycloak db.
I read that Jboss WildFly already uses Hiberante 4.3 JPA, so i choose to
follow this line for my project.
Another requirement is to decouple the provider and the JPA
model-mapping-project, so my JPA model-mapping-project has to be deployed a
separated jar file.
You can use JBoss Modules and deploy your mapping as one model and the Keycloak provider
as another.
Following the keycloak userguide i deploy the provider simply coping
the
built jar project into the .../standalone/configuration/providers directory.
The JPA model-mapping-project jar file is deployed into the Wildfly using the
management console deployment section.
Now i'm facing up to 2 problems:
1) the user-federation-provider doesn't see the model-mapping-project classes
(throwing the ClassNotFoundException)
2) if i simply copy the model-mapping-project.jar into the
/standalone/configuration/providers directory, the fereration provider sees
the classes but the EntityManager dependency injection does not work
(NullPointerException)
What the way i can solve this problem?
Is there another way to deploy providers? and what about the jar and the
depecency injection?
Thanks
Regards.
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev