I have detected that when I move my jar with the web application that
contains the singleton and the rest of the classes used from my webapp
classloader to the shared loader (
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html#Overview
here  you can see tomcat 5.5 classloaders), it works ok.

I think this is a bit strange, because when I have my classes in the webapp
classloader, openejb loads ok the singleton, and executes the @Postconstruct
method, so in my opinion it seems before predestroy is done something that
should be done after @Predestroy in order to have the same behaviour in this
operation as in postconstruct.
-- 
View this message in context: 
http://openejb.979440.n4.nabble.com/Error-at-PreDestroy-Singleton-in-OpenEJB-3-1-2-Tomcat-shutdown-tp2295992p2298231.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to