<div dir="ltr">With other Java EE 8 tech previews we handle it by loading the correct resource based on a system property. Is this not possible with Hibernate for some reason? For example have a look at the javax.validation.api module [1].<div><br></div><div>[1]: <a href="https://github.com/wildfly/wildfly/blob/master/servlet-feature-pack/src/main/resources/modules/system/layers/base/javax/validation/api/main/module.xml#L26-L42">https://github.com/wildfly/wildfly/blob/master/servlet-feature-pack/src/main/resources/modules/system/layers/base/javax/validation/api/main/module.xml#L26-L42</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 1:20 PM, Scott Marlow <span dir="ltr">&lt;<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@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"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Feb 21, 2018 at 3:36 PM, James Perkins <span dir="ltr">&lt;<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@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"><div dir="ltr">Is there a need to create a new module?</div></blockquote><div><br></div></span><div>Yes, WildFly needs to keep including the current Hibernate ORM  5.1 jar for application compatibility but we also need to include the newer Hibernate ORM 5.3+ jar for EE 8/JPA 2.2 use.  So, we really need a new ORM module, since we will keep both Hibernate versions in WildFly for a while (ORM 5.3 may get swapped out with a newer version later, TBD).</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Scott</div><div><br></div></font></span></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</div>