<div dir="ltr"><div><div><div><div>Just for record if that is not sure.<br></div>If this is deployment properly deployed in WildFly jandex index for it is automatically build for it during deploy time.<br></div>If your code is in Extension(subsystem) it can register DeploymentUnitProcessor which can access this indexes during deployment.<br><br></div>Otherwise if your code is run time only then what you are doing is the right way.<br><br>--<br></div>tomaz<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 23, 2014 at 9:32 AM, Thomas Segismont <span dir="ltr">&lt;<a href="mailto:tsegismo@redhat.com" target="_blank">tsegismo@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
<br>
Le 22/09/2014 17:23, Jason Greene a écrit :<br>
<span class="">&gt; Yeah something like that. Although I just want to stress the importance of using the ClassLoader for the deployment, as due to a historical oversight the path is different between windows and unix.<br>
<br>
</span>Understood. For the record:<br>
getClass().getClassLoader().getResources(&quot;META-INF/persistence.xml&quot;);<br>
<br>
<br>
Then:<br>
<br>
VirtualFile virtualFile = (VirtualFile) url.openConnection().getContent();<br>
// up to the archive root<br>
virtualFile = virtualFile.getParent().getParent();<br>
<br>
<br>
My index is correctly built and now I&#39;m trying to find how I can read<br>
org.jboss.jandex.ClassInfo#flags to determine if the class is public.<br>
<br>
<br>
Thank you both for indications and the code snippet!<br>
<br>
Regards,<br>
<div class="HOEnZb"><div class="h5">Thomas<br>
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
</div></div></blockquote></div><br></div>