<div dir="ltr"><font face="courier new, monospace">Scott,</font><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">PicketLink doesn't use any Hibernate extensions, and users are expected to provide a persistence unit called "picketlink-sts" in their applications.</font></div>
<div><span style="font-family:'courier new',monospace"><br></span></div><div><span style="font-family:'courier new',monospace">Regarding the bootstraping of the persistence unit, you guessed right [1].</span></div>
<div><font face="courier new, monospace"><br>Regards,</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">--<br></font></div><div><font face="courier new, monospace">Fernando</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">[1] <a href="https://github.com/picketlink/picketlink/blob/277c5b8ec9b6eee5dcd36422763db6f02479f081/modules/federation/src/main/java/org/picketlink/identity/federation/core/sts/registry/AbstractJPARegistry.java">https://github.com/picketlink/picketlink/blob/277c5b8ec9b6eee5dcd36422763db6f02479f081/modules/federation/src/main/java/org/picketlink/identity/federation/core/sts/registry/AbstractJPARegistry.java</a></font></div>
<div><br></div><div><br></div><div>r</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 24, 2013 at 4:17 PM, Scott Marlow <span dir="ltr"><<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How does PickLink bootstrap the persistence unit mentioned in [5] + [6]? I assume not via EE JPA container managed deployment. I'm guessing via direct calls to javax.persistence.Persistence.<u></u>createEntityManagerFactory("<u></u>picketlink-sts").<br>
<br>
Does PicketLink use any Hibernate extensions? Or just the JPA api?<br>
<br>
Do we have a more complete example than [5]+[6], that include how users are expected to supply datasource/database configuration.<div class="im"><br>
<br>
<br>
On 07/24/2013 02:34 PM, Fernando Ribeiro wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
The issue is the PicketLink module depending on a specific JPA<br>
implementation, which is not really desirable, and currently looks<br>
unavoidable. Regards.<br>
<br>
<br>
On Wed, Jul 24, 2013 at 11:55 AM, Jaikiran Pai <<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a><br></div><div><div class="h5">
<mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a>>> wrote:<br>
<br>
Fernando actually proposed a fix which we wanted to be discussed here in<br>
the mailing list since the fix didn't look right for a core component<br>
like PicketLink. The PR (which we closed) is here<br>
<a href="https://github.com/wildfly/wildfly/issues/4786" target="_blank">https://github.com/wildfly/<u></u>wildfly/issues/4786</a><br>
<br>
-Jaikiran<br>
On Wednesday 24 July 2013 08:22 PM, Darran Lofthouse wrote:<br>
><br>
> On 24/07/13 15:46, Fernando Ribeiro wrote:<br>
>> All,<br>
>><br>
>> There is an issue in PicketLink [1] that requires the module<br>
descriptor<br>
>> in WildFly to depend on "org.hibernate" and "org.javassist" to<br>
support<br>
>> two components called "JPABasedTokenRegistry" [2] and<br>
>> "JPABasedRevocationRegistry" [3].<br>
>><br>
>> How would you suggest this issue to be fixed?<br>
> If you already have the proposed fix I would suggest sending over<br>
a pull<br>
> request.<br>
><br>
> <a href="https://community.jboss.org/wiki/HackingOnWildFly" target="_blank">https://community.jboss.org/<u></u>wiki/HackingOnWildFly</a><br>
><br>
> If you are an EAP customer I would suggest opening a support case so<br>
> that the support team can request the fix is included in EAP.<br>
><br>
>> The issue has also been logged in WildFly already [4]. There are<br>
samples<br>
>> of the JPA registries available in my blog [5][6].<br>
>><br>
>> Regards,<br>
>><br>
>> --<br>
>> Fernando<br>
>><br>
>> [1] <a href="https://issues.jboss.org/browse/PLINK2-97" target="_blank">https://issues.jboss.org/<u></u>browse/PLINK2-97</a><br>
>> [2]<br>
>><br>
<a href="https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/API_Documentation/files/javadoc/org/picketlink/identity/federation/core/sts/registry/JPABasedTokenRegistry.html" target="_blank">https://access.redhat.com/<u></u>site/documentation/en-US/<u></u>JBoss_Enterprise_Application_<u></u>Platform/6.1/html/API_<u></u>Documentation/files/javadoc/<u></u>org/picketlink/identity/<u></u>federation/core/sts/registry/<u></u>JPABasedTokenRegistry.html</a><br>
>> [3]<br>
>><br>
<a href="https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.1/html/API_Documentation/files/javadoc/org/picketlink/identity/federation/core/sts/registry/JPABasedRevocationRegistry.html" target="_blank">https://access.redhat.com/<u></u>site/documentation/en-US/<u></u>JBoss_Enterprise_Application_<u></u>Platform/6.1/html/API_<u></u>Documentation/files/javadoc/<u></u>org/picketlink/identity/<u></u>federation/core/sts/registry/<u></u>JPABasedRevocationRegistry.<u></u>html</a><br>
>> [4] <a href="https://issues.jboss.org/browse/WFLY-1691" target="_blank">https://issues.jboss.org/<u></u>browse/WFLY-1691</a><br>
>> [5]<br>
>><br>
<a href="http://simplesassim.wordpress.com/2013/07/12/how-to-use-the-jpa-based-token-registry-in-picketlink/" target="_blank">http://simplesassim.wordpress.<u></u>com/2013/07/12/how-to-use-the-<u></u>jpa-based-token-registry-in-<u></u>picketlink/</a><br>
>> [6]<br>
>><br>
<a href="http://simplesassim.wordpress.com/2013/07/21/how-to-use-the-jpa-based-revocation-registry-in-picketlink/" target="_blank">http://simplesassim.wordpress.<u></u>com/2013/07/21/how-to-use-the-<u></u>jpa-based-revocation-registry-<u></u>in-picketlink/</a><br>
>><br>
>><br>
>> ______________________________<u></u>_________________<br>
>> wildfly-dev mailing list<br></div></div>
>> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>><div class="im">
<br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a><br>
>><br>
> ______________________________<u></u>_________________<br>
> wildfly-dev mailing list<br></div>
> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>><div class="im">
<br>
> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a><br>
<br>
______________________________<u></u>_________________<br>
wildfly-dev mailing list<br></div>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>><div class="im">
<br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a><br>
<br>
<br>
<br>
<br>
--<br>
Fernando Ribeiro<br>
Upic<br>
+55 11 9 8111 4078<br>
<br>
<br></div><div class="im">
______________________________<u></u>_________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a><br>
<br>
</div></blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Fernando Ribeiro<br><div>Upic</div><div>+55 11 9 8111 4078</div>
</div>