2 Replies Latest reply on Jun 13, 2006 1:23 PM by Eric Williams

    Inconsistently passing by reference

    Eric Williams Newbie

      I have two stateless session beans (call them A and B) in the same deployable unit, which has been included in an EAR. Their implementations share the same package, as do their interfaces. They are configured identically in the deployment descriptor.

      Both A and B rely on pass-by-reference, so it's critical that method parameters are not (de)serialized. I know this is bad practice, but I'm supporting legacy code.

      Bean A is used by clients outside of its EAR, and bean B is used by bean A.

      My ejb-deployer.xml contains true.

      The problem is that pass-by-reference works fine between bean A and its clients, but does not work at all between bean B and bean A.

      Any ideas as to what might be happening here? Please let me know if you need more details...

      Thanks,
      Eric