<style>
/* Changing the layout to use less space for mobiles */
@media screen and (max-device-width: 480px), screen and (-webkit-min-device-pixel-ratio: 2) {
    #email-body { min-width: 30em !important; }
    #email-page { padding: 8px !important; }
    #email-banner { padding: 8px 8px 0 8px !important; }
    #email-avatar { margin: 1px 8px 8px 0 !important; padding: 0 !important; }
    #email-fields { padding: 0 8px 8px 8px !important; }
    #email-gutter { width: 0 !important; }
}
</style>
<div id="email-body">
<table id="email-wrap" align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#f0f0f0;color:#000000;width:100%;">
    <tr valign="top">
        <td id="email-page" style="padding:16px !important;">
            <table align="center" border="0" cellpadding="0" cellspacing="0" style="background-color:#ffffff;border:1px solid #bbbbbb;color:#000000;width:100%;">
                <tr valign="top">
                    <td bgcolor="#3e4c4e" style="background-color:#3e4c4e;color:#ffffff;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;line-height:1;"><img src="https://www.jboss.org/dms/hibernate/images/jira/jiraheader_hibernate.png" alt="" style="vertical-align:top;" /></td>
                </tr><tr valign="top">
    <td id="email-banner" style="padding:32px 32px 0 32px;">

                
        
        
            <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100%;">
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;padding:0;">
                                        <img id="email-avatar" src="https://hibernate.onjira.com/secure/useravatar?ownerId=steve&avatarId=10346" alt="" height="48" width="48" border="0" align="left" style="padding:0;margin: 0 16px 16px 0;" />
                        <div id="email-action" style="padding: 0 0 8px 0;font-size:12px;line-height:18px;">
                                    <a class="user-hover" rel="steve" id="email_steve" href="https://hibernate.onjira.com/secure/ViewProfile.jspa?name=steve" style="color:#6c797f;">Steve Ebersole</a>
     commented on <img src="https://hibernate.onjira.com/images/icons/newfeature.gif" height="16" width="16" border="0" align="absmiddle" alt="New Feature"> <a style='color:#6c797f;text-decoration:none;' href='https://hibernate.onjira.com/browse/HHH-7527'>HHH-7527</a>
            </div>
                        <div id="email-summary" style="font-size:16px;line-height:20px;padding:2px 0 16px 0;">
                <a style='color:#6c797f;text-decoration:none;' href='https://hibernate.onjira.com/browse/HHH-7527'><strong>OSGI manifests for hibernate-orm</strong></a>
            </div>
                    </td>
    </tr>
</table>
    </td>
</tr>
<tr valign="top">
    <td id="email-fields" style="padding:0 32px 32px 32px;">
        <table border="0" cellpadding="0" cellspacing="0" style="padding:0;text-align:left;width:100%;" width="100%">
            <tr valign="top">
                <td id="email-gutter" style="width:64px;white-space:nowrap;"></td>
                <td>
                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr valign="top">
    <td colspan="2" style="color:#000000;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:12px;padding:0 0 16px 0;width:100%;">
        <div class="comment-block" style="background-color:#edf5ff;border:1px solid #dddddd;color:#000000;padding:12px;"><p>WRT to proof-of-concept...</p>

<p>Unfortunately there are still some pretty big open questions.  So I am not totally sure how this was supposed to tie in with Hibernate's service registry building; not sure what Martin had planned there exactly if he had an clear cut plan for those specifics.  Anyway, here I will quote the discussions he and I had about the proof-of-concept...</p>

<p>From Martin:</p>

<blockquote>
<p>I have created a first version of a classloader which should be registered<br/>
for all the "interested" bundles. So there would be x classloaders: One<br/>
for each interested bundle (a OsgiBundleClassLoaderServiceImpl) and one<br/>
"super" classloader (OsgiClassLoaderServiceImpl) which encapsulate the<br/>
Bundle-Classloaders and is responsible for the dynamic part (react on<br/>
bundles and services when they come and go).<br/>
The "super classloader" can then registered with hibernate to help with<br/>
classloading.</p>

<p>...</p>

<p>Next step is to create the BundleActivator which initiates the<br/>
scanning,etc. and is responsible for registering/unregistering<br/>
services/bundles with hibernate. I will start with: I am interested in<br/>
services which implement org.hibernate.service.Service to show my intended<br/>
direction.</p></blockquote>


<p>To which I replied:</p>

<blockquote>
<p>Couple of observations:</p>

<p>1) This notion of bundles "going away" (HibernateBundleActivator.serviceChanged -&gt; OsgiClassLoaderService.unregisterBundle) is really going to end up having bad consequences in reality if that thing going away is used by Hibernate.  Think we might want to be a little more proactive in warning about that.<br/>
2) Its not really just org.hibernate.service.Service that we want HibernateBundleActivator watching for.  Not sure if that was just a quick swab.  It is much more than that.  We can talk about those specifics as we move forward.<br/>
3) Not understanding why there is both OsgiClassLoaderServiceImpl and OsgiBundleClassLoaderServiceImpl.<br/>
4) How are you expecting that which ever ClassLoaderService impl above is "real" gets registered to the Hibernate BootstrapServiceRegistry?</p>

<p>Other than these I think I see what you are doing here.  The big questions I guess are (a) how the ClassLoaderService impl gets hooked in to BootstrapServiceRegistry and (b) what we actually look for in the bundles.</p></blockquote>

<p>This is basically where we last heard from Martin.  He did respond that he agreed about the problems of bundles going away; essentially we will just have to be as proactive as we can be to warn users when this happens.  But the 2 big questions at the end of my response were never addressed.  So not exactly sure where to go with that.</p></div>
        <div style="color:#505050;padding:4px 0 0 0;">                </div>
    </td>
</tr>
                    </table>
                </td>
            </tr>
        </table>
    </td>
</tr>













            </table>
        </td><!-- End #email-page -->
    </tr>
    <tr valign="top">
        <td style="color:#505050;font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:10px;line-height:14px;padding: 0 16px 16px 16px;text-align:center;">
            This message is automatically generated by JIRA.<br />
            If you think it was sent incorrectly, please contact your JIRA administrators<br />
            For more information on JIRA, see: <a style='color:#6c797f;' href='http://www.atlassian.com/software/jira'>http://www.atlassian.com/software/jira</a>
        </td>
    </tr>
</table><!-- End #email-wrap -->
</div><!-- End #email-body -->