[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2184) allow for proxies using cglib to be created using different classloader

Jason Novotny (JIRA) noreply at atlassian.com
Thu Oct 26 14:52:05 EDT 2006


allow for proxies using cglib to be created using different classloader
-----------------------------------------------------------------------

         Key: HHH-2184
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2184
     Project: Hibernate3
        Type: Improvement

  Components: core  
    Versions: 3.2.0.ga    
    Reporter: Jason Novotny


I'm trying to keep the boatload of hibernate jars and dependencies including cglib separate from my POJOs that are in a sepaarte classloader. Everything works fine as long as lazy is turned off. But if I wish to enable lazy loading, cglib requires the POJOs to be in the same classpath since  CGLIBLazyInitializer is doing a class.newInstance() -- it would be really great if it could optionally pass in a classloader object as well. The tricky part is that the classloader probably needs to be passed in to the sessionFactory as well. 




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list