Why do you need to recycle the hibernate
classes? Can't you just add them to
If you are recycling the hibernate classess,
you'll need to redeploy the interceptor
and all the applications that use it.
Alternatively, use reflection to load the
session class on every request (much slower)
thanks for the reply. well, i can deploy hibernate to jboss lib like you said. then i won't get the class linkage error. the problem is that i am getting a hibernate session in the interceptor, which in turn is linked to the session factory, which is like the central repository of all the persistent classes. now if i hot redeploy my persistent classes, (as part of my application), the session factory won't be able to find the new classes anymore. (reflection won't help at all, unless hibernate is re-written.)
given that interceptors cannot be redeployed, one just needs to be careful with what classes are used in the interceptor and deal with the consequence. in my situation, i may just need to restart jboss in some circumstances.