Hi all, I have a SLSB that tries to send an Object to a remote location, in case of there is a problem during the transfer the SLSB saves the Object to a database and starts a Timer Bean that will read the Object from the database and try to send it again.
But I have some problems, I get ClassCastExceptions all the time when the Timer Bean tries to cast it to its type when it has read it from the database. This has probably something to do with ClassLoader - If I print out the ClassLoader to the screen after it has bean loaded from the database it is null | Object obj = rs.getObject(1); | log4j.info(obj.getClass().getClassLoader()); // generates null | MyType mt = (MyType)obj; // generates ClassCastException How can I fix this? Greatfull for any suggestions! Cheers //Anders =) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874107#3874107 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874107 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
