<p dir="ltr">I guess that is the AbstractJPARegistry class referred to in my previous message, right?</p>
<div class="gmail_quote">On Jul 24, 2013 6:42 PM, &quot;Scott Marlow&quot; &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Can you give me a link to the PicketLink code that does the bootstrap? I&#39;d like to see why you need to reference Hibernate directly.<br>
<br>
As long as the JPA subsystem JPAExtension.initialize() has run, the default persistence provider (Hibernate) will be available to javax.persistence.Persistence.<u></u>createEntityManagerFactory().<br>
<br>
On 07/24/2013 03:39 PM, Fernando Ribeiro wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Scott,<br>
<br>
PicketLink doesn&#39;t use any Hibernate extensions, and users are expected<br>
to provide a persistence unit called &quot;picketlink-sts&quot; in their applications.<br>
<br>
Regarding the bootstraping of the persistence unit, you guessed right [1].<br>
<br>
Regards,<br>
<br>
--<br>
Fernando<br>
<br>
[1]<br>
<a href="https://github.com/picketlink/picketlink/blob/277c5b8ec9b6eee5dcd36422763db6f02479f081/modules/federation/src/main/java/org/picketlink/identity/federation/core/sts/registry/AbstractJPARegistry.java" target="_blank">https://github.com/picketlink/<u></u>picketlink/blob/<u></u>277c5b8ec9b6eee5dcd36422763db6<u></u>f02479f081/modules/federation/<u></u>src/main/java/org/picketlink/<u></u>identity/federation/core/sts/<u></u>registry/AbstractJPARegistry.<u></u>java</a><br>

<br>
<br>
r<br>
<br>
<br>
<br>
On Wed, Jul 24, 2013 at 4:17 PM, Scott Marlow &lt;<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a><br>
&lt;mailto:<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    How does PickLink bootstrap the persistence unit mentioned in [5] +<br>
    [6]?  I assume not via EE JPA container managed deployment.  I&#39;m<br>
    guessing via direct calls to<br>
    javax.persistence.Persistence.<u></u>__createEntityManagerFactory(&quot;<u></u>__picketlink-sts&quot;).<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<br>
    users are expected to supply datasource/database configuration.<br>
<br>
<br>
<br>
    On 07/24/2013 02:34 PM, Fernando Ribeiro wrote:<br>
<br>
        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 &lt;<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a><br>
        &lt;mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a>&gt;<br>
        &lt;mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a> &lt;mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a>&gt;&gt;&gt; wrote:<br>
<br>
             Fernando actually proposed a fix which we wanted to be<br>
        discussed here in<br>
             the mailing list since the fix didn&#39;t look right for a core<br>
        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>
        &lt;<a href="https://github.com/wildfly/wildfly/issues/4786" target="_blank">https://github.com/wildfly/<u></u>wildfly/issues/4786</a>&gt;<br>
<br>
             -Jaikiran<br>
             On Wednesday 24 July 2013 08:22 PM, Darran Lofthouse wrote:<br>
              &gt;<br>
              &gt; On 24/07/13 15:46, Fernando Ribeiro wrote:<br>
              &gt;&gt; All,<br>
              &gt;&gt;<br>
              &gt;&gt; There is an issue in PicketLink [1] that requires the<br>
        module<br>
             descriptor<br>
              &gt;&gt; in WildFly to depend on &quot;org.hibernate&quot; and<br>
        &quot;org.javassist&quot; to<br>
             support<br>
              &gt;&gt; two components called &quot;JPABasedTokenRegistry&quot; [2] and<br>
              &gt;&gt; &quot;JPABasedRevocationRegistry&quot; [3].<br>
              &gt;&gt;<br>
              &gt;&gt; How would you suggest this issue to be fixed?<br>
              &gt; If you already have the proposed fix I would suggest<br>
        sending over<br>
             a pull<br>
              &gt; request.<br>
              &gt;<br>
              &gt; <a href="https://community.jboss.org/__wiki/HackingOnWildFly" target="_blank">https://community.jboss.org/__<u></u>wiki/HackingOnWildFly</a><br>
        &lt;<a href="https://community.jboss.org/wiki/HackingOnWildFly" target="_blank">https://community.jboss.org/<u></u>wiki/HackingOnWildFly</a>&gt;<br>
              &gt;<br>
              &gt; If you are an EAP customer I would suggest opening a<br>
        support case so<br>
              &gt; that the support team can request the fix is included in<br>
        EAP.<br>
              &gt;<br>
              &gt;&gt; The issue has also been logged in WildFly already [4].<br>
        There are<br>
             samples<br>
              &gt;&gt; of the JPA registries available in my blog [5][6].<br>
              &gt;&gt;<br>
              &gt;&gt; Regards,<br>
              &gt;&gt;<br>
              &gt;&gt; --<br>
              &gt;&gt; Fernando<br>
              &gt;&gt;<br>
              &gt;&gt; [1] <a href="https://issues.jboss.org/__browse/PLINK2-97" target="_blank">https://issues.jboss.org/__<u></u>browse/PLINK2-97</a><br>
        &lt;<a href="https://issues.jboss.org/browse/PLINK2-97" target="_blank">https://issues.jboss.org/<u></u>browse/PLINK2-97</a>&gt;<br>
              &gt;&gt; [2]<br>
              &gt;&gt;<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>

        &lt;<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>&gt;<br>

              &gt;&gt; [3]<br>
              &gt;&gt;<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>

        &lt;<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>&gt;<br>

              &gt;&gt; [4] <a href="https://issues.jboss.org/__browse/WFLY-1691" target="_blank">https://issues.jboss.org/__<u></u>browse/WFLY-1691</a><br>
        &lt;<a href="https://issues.jboss.org/browse/WFLY-1691" target="_blank">https://issues.jboss.org/<u></u>browse/WFLY-1691</a>&gt;<br>
              &gt;&gt; [5]<br>
              &gt;&gt;<br>
        <a href="http://simplesassim.wordpress." target="_blank">http://simplesassim.wordpress.</a><u></u>__com/2013/07/12/how-to-use-<u></u>the-__jpa-based-token-<u></u>registry-in-__picketlink/<br>
        &lt;<a href="http://simplesassim.wordpress.com/2013/07/12/how-to-use-the-jpa-based-token-registry-in-picketlink/" target="_blank">http://simplesassim.<u></u>wordpress.com/2013/07/12/how-<u></u>to-use-the-jpa-based-token-<u></u>registry-in-picketlink/</a>&gt;<br>

              &gt;&gt; [6]<br>
              &gt;&gt;<br>
        <a href="http://simplesassim.wordpress." target="_blank">http://simplesassim.wordpress.</a><u></u>__com/2013/07/21/how-to-use-<u></u>the-__jpa-based-revocation-<u></u>registry-__in-picketlink/<br>
        &lt;<a href="http://simplesassim.wordpress.com/2013/07/21/how-to-use-the-jpa-based-revocation-registry-in-picketlink/" target="_blank">http://simplesassim.<u></u>wordpress.com/2013/07/21/how-<u></u>to-use-the-jpa-based-<u></u>revocation-registry-in-<u></u>picketlink/</a>&gt;<br>

              &gt;&gt;<br>
              &gt;&gt;<br>
              &gt;&gt; ______________________________<u></u>___________________<br>
              &gt;&gt; wildfly-dev mailing list<br>
              &gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;<br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists." target="_blank">wildfly-dev@lists.</a>__<a href="http://jboss.org" target="_blank">jb<u></u>oss.org</a><br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;&gt;<br>
<br>
              &gt;&gt; <a href="https://lists.jboss.org/__mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/__<u></u>mailman/listinfo/wildfly-dev</a><br>
        &lt;<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a>&gt;<br>
              &gt;&gt;<br>
              &gt; ______________________________<u></u>___________________<br>
              &gt; wildfly-dev mailing list<br>
              &gt; <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;<br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists." target="_blank">wildfly-dev@lists.</a>__<a href="http://jboss.org" target="_blank">jb<u></u>oss.org</a><br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;&gt;<br>
<br>
              &gt; <a href="https://lists.jboss.org/__mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/__<u></u>mailman/listinfo/wildfly-dev</a><br>
        &lt;<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a>&gt;<br>
<br>
             ______________________________<u></u>___________________<br>
             wildfly-dev mailing list<br>
        <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;<br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists." target="_blank">wildfly-dev@lists.</a>__<a href="http://jboss.org" target="_blank">jb<u></u>oss.org</a><br>
        &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;&gt;<br>
<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>
        &lt;<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a>&gt;<br>
<br>
<br>
<br>
<br>
        --<br>
        Fernando Ribeiro<br>
        Upic<br>
        <a href="tel:%2B55%2011%209%208111%204078" value="+5511981114078" target="_blank">+55 11 9 8111 4078</a><br>
<br>
<br>
        ______________________________<u></u>___________________<br>
        wildfly-dev mailing list<br>
        <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a> &lt;mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>&gt;<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>
        &lt;<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/<u></u>mailman/listinfo/wildfly-dev</a>&gt;<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Fernando Ribeiro<br>
Upic<br>
<a href="tel:%2B55%2011%209%208111%204078" value="+5511981114078" target="_blank">+55 11 9 8111 4078</a><br>
</blockquote>
<br>
</blockquote></div>