Description of problem: Because DataOutputStream does a flush() before close EJB invocations are send via two separate write() calls, rather than one, which has a negative impact on performance.
Verified in CR1.