-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dynamic classloading of pojo classes
PostPosted: Wed Mar 21, 2007 7:05 am 
Newbie

Joined: Wed Mar 21, 2007 6:48 am
Posts: 2
Is it possible to load the pojo classes dynamical? My project is Eclipse based and I get the pojo classes and the relating mapping files only at runtime. I have tried to set the Thread contextclassloader for loading my pojo classes. That works, but it seams that the classloader which loads my mappings and a bunch of other files (when set as contextclassloader) cannot be garbage collected, because some lib of hibernate keeps references of a class loaded by this classloader. Well is there a reason why it is not supported by hibernate to set a classsloader for examle in the class org.hibernate.util.ReflectHelper which can then load the mappings dynamical?
Or is there maybe another way to run hibernate withou having the pojo files in the classpath?

A am using hibernate version 3.1.3


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.