[hibernate-dev] Question about Jandex composite indexes passed into via "hibernate.jandex_index" and whether ORM keeps a strong reference to Jandex indexes after deployment...
smarlow at redhat.com
Wed Mar 18 14:56:15 EDT 2015
On 03/18/2015 01:53 PM, Steve Ebersole wrote:
> Out of curiosity though, since you want more and more and more things
> pushed to "second phase bootstrapping", I am curious how this new
> expectation plays in with that. Specifically, us "using" Jandex will
> certainly include us accessing classes, unless Jason has added the
> expanded capabilities he and I have discussed to Jandex wrt accessing
> Class members outside of the annotations they may or may not have.
If we use the application classloader during the "first phase
bootstrapping", entity class enhancement will not work (application
classes will be loaded before they can be rewritten). Classloading
during the "first phase bootstrapping" with
still work with entity class enhancement.
> On Wed, Mar 18, 2015 at 12:49 PM, Steve Ebersole <steve at hibernate.org
> <mailto:steve at hibernate.org>> wrote:
> On Wed, Mar 18, 2015 at 12:44 PM, Scott Marlow <smarlow at redhat.com
> <mailto:smarlow at redhat.com>> wrote:
> On 03/18/2015 01:05 PM, Steve Ebersole wrote:
> Well I should also clarify that currently we are not using
> Jandex. That
> was all work done as part of the mapping/metamodel redesign
> which we
> decided to push to 6.0.
> I assume you mean the master (5.0) code base doesn't use Jandex
> but it looks like  in 4.3, is building/using the Jandex index.
> How big of a change would it be to use Jandex (via
> "hibernate.jandex_index") in ORM 4.3/5.0 mapping? Would be nice
> to have a comparison of how long it takes to deploy a large
> application with and without Jandex.
> On Wed, Mar 18, 2015 at 10:22 AM, Steve Ebersole
> <steve at hibernate.org <mailto:steve at hibernate.org>
> <mailto:steve at hibernate.org <mailto:steve at hibernate.org>>>
> I don't *think* we do, but it sounds like something we
> need to make sure we aren't doing.
> On Mar 17, 2015 8:41 AM, "Scott Marlow"
> <smarlow at redhat.com <mailto:smarlow at redhat.com>
> <mailto:smarlow at redhat.com
> <mailto:smarlow at redhat.com>>> wrote:
> Wildfly-dev  brings up a change expected for
> WildFly 10, to not
> reference the Jandex indexes after deployment
> completes. I'm
> curious if
> our current/planned ORM 5.0 jandex using code,
> keeps a reference
> to the
> passed in "hibernate.jandex_index"?
> How how hard would it be for ORM, to only reference the
> composite Jandex
> index during application deployment time?
> Deployment time ends when
> PersistenceProvider.__createContainerEntityManagerFa__ctory() returns.
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> <mailto:hibernate-dev at lists.jboss.org>
> <mailto:hibernate-dev at lists.__jboss.org
> <mailto:hibernate-dev at lists.jboss.org>>
More information about the hibernate-dev