This content has been marked as final.
Show 1 reply
-
1. Re: Not serializable - but optimized?
drcharris Apr 10, 2002 5:34 PM (in response to tysonnorris)The optimisation happens only if the class is loaded by the same classloader on both sides - if you're loading it from different archives in the webapp and the ejb app then the chances are the container will attempt a serialisation to avoid ClassCastExceptions. This will happen even if you have the exact same bytecode in each copy of the class since the jvm regards classes loaded via different classloaders as different - regardless of their content.
Check the location of the class you're trying to use across tomcat-jboss. If you're using separate copies in different parts of your app then the container will serialise (or try to).