Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-28 Thread Brett Meyer
> > > Is that the best way to know when TransactionManagers and DataSources > > come > > > and go too? Or is there a more specific concept for listening to an > > "OSGi > > > service"? > > > > At least for TransactionManagers, yes, the BundleListener is probably the > > best approach. I'm not awa

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-27 Thread Steve Ebersole
More I mean what bundle(s) should I listen to in order to know that the ClassLoader is no longer valid? Or how would I otherwise know that or be notified of that? I can ping Christian regarding Aries specifically and get his thoughts. On Wed, May 27, 2015 at 9:16 PM, Brett Meyer wrote: > > In

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-27 Thread Steve Ebersole
On Wed, May 27, 2015 at 9:09 PM, Brett Meyer wrote: > > Is that the best way to know when TransactionManagers and DataSources > come > > and go too? Or is there a more specific concept for listening to an > "OSGi > > service"? > > At least for TransactionManagers, yes, the BundleListener is prob

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-27 Thread Brett Meyer
> In regards to OsgiClassLoader and dynamically managing the "classpath", any > thoughts on how to handle out single call to OsgiClassLoader#addClassLoader > (from OsgiPersistenceProvider passing > the javax.persistence.spi.PersistenceUnitInfo#getClassLoader we get from > the e-OSGi container)? >

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-27 Thread Brett Meyer
> Is that the best way to know when TransactionManagers and DataSources come > and go too? Or is there a more specific concept for listening to an "OSGi > service"? At least for TransactionManagers, yes, the BundleListener is probably the best approach. I'm not aware of a more specific way beyo

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Steve Ebersole
rnatePersistenceProvider so that >>> > > OsgiPersistenceProvider can give you the OsgiClassLoader to use. >>> > > >>> > > > Additionally, this ClassLoader is ultimately just used to build the >>> > > > C

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Steve Ebersole
t;> > > >> > > > Additionally, this ClassLoader is ultimately just used to build the >> > > > ClassLoaderService which hibernate-osgi overrides anyway. >> > > >> > > Right, assuming you're talking about >> > > 'Clas

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Steve Ebersole
way. > > > > > > Right, assuming you're talking about > > > 'ClassLoaderHelper.overridenClassLoader'. But the intention there was > to > > > remove that whole class ASAP -- that was just a temporary hack for ORM > 4, > > > since CL

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Brett Meyer
gt; remove that whole class ASAP -- that was just a temporary hack for ORM 4, > > since CL handling was still really static. But admittedly, I'm a bit out > > of touch with ORM 5, so I'm not sure if that's feasible yet. > > > > - Original Message - > > &

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Steve Ebersole
M 4, > since CL handling was still really static. But admittedly, I'm a bit out > of touch with ORM 5, so I'm not sure if that's feasible yet. > > - Original Message ----- > > From: "Steve Ebersole" > > To: "hibernate-dev" > > S

Re: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-26 Thread Brett Meyer
Ebersole" > To: "hibernate-dev" > Sent: Saturday, May 23, 2015 1:49:50 PM > Subject: [hibernate-dev] hibernate-osgi JPA bootstrap & classloader > > Brett, > > As part of HHH-7527 (Enterprise OSGi support) you had changed > the org.hibernate.jpa.boot.

[hibernate-dev] hibernate-osgi JPA bootstrap & classloader

2015-05-23 Thread Steve Ebersole
Brett, As part of HHH-7527 (Enterprise OSGi support) you had changed the org.hibernate.jpa.boot.spi.Bootstrap contract to basically overload each method to additional accept a "providedClassLoader". Every one of those methods however, also accepts a org.hibernate.jpa.boot.spi.PersistenceUnitDescr