This content has been marked as final. Show 2 replies
That is in violation of the java type model and cannot be done trivally. If you setup a call by value stack between the web and ejb tier, an alternate object could be used for serialization using:
Object writeReplace() throws ObjectStreamException; Object readResolve() throws ObjectStreamException;
but this is going to be difficult to maintain and would make your ejbs only usable by your web tier.
Generally what you asking for makes little sense so rethink why you want this.