<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, "Scott Marlow" <<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>> 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'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't use any Hibernate extensions, and users are expected<br>
to provide a persistence unit called "picketlink-sts" 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 <<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a><br>
<mailto:<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>>> 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'm<br>
guessing via direct calls to<br>
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<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 <<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a><br>
<mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a>><br>
<mailto:<a href="mailto:jpai@redhat.com" target="_blank">jpai@redhat.com</a> <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<br>
discussed here in<br>
the mailing list since the fix didn'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>
<<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<br>
module<br>
descriptor<br>
>> in WildFly to depend on "org.hibernate" and<br>
"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<br>
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>
<<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<br>
support case so<br>
> that the support team can request the fix is included in<br>
EAP.<br>
><br>
>> The issue has also been logged in WildFly already [4].<br>
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>
<<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>
<<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>
<<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>
<<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." 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>
<<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>><br>
>> [6]<br>
>><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>
<<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>><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><br>
<mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>><br>
<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>
<mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>>><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>
<<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>
> <a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>><br>
<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>
<mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>>><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>
<<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>
<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>><br>
<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>
<mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>jboss.org</a>>><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>
<<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>
<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> <mailto:<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.<u></u>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>
<<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>
--<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>