From: <ste...@jb...> - 2005-07-27 16:16:48
|
Follow-on question: Does this neccessarily need to happen from The Hibernate MBean's startService()? Specifically, the Thread.currentThread().getContextClassLoader() part... The MBean gives the user a managed operation to rebuild the SessionFactory; both this and the startService() go through an internal method named buildSessionFactory(). Would it be safe to have the Thread.currentThread().getContextClassLoader() call in that method, such that rebuilding the session factory could potentially "notice" added/removed domain classes? I guess this would depend upon whether subsequent calls into the MBean (aka, the rebuildSessionFactory() managed operation) would be executed on a thread which has the same "URL visibility" as the one from startService(); is this always the case (at least as long as the request is made through the JMX container)? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886850#3886850 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3886850 |