Your using the default configuration which explicitly disables call by reference optimization as per the ejb spec as required for the j2ee certificaton. Use the standard configuration which has the optimizations enabled by default.
I'll look into that. Any chance you can point me towards the doc on how to do this?
Additionally, I see large slowdowns in other operations. For example, under 3.2 my intra-jvm local and remote jndi lookups were 141 and 172 ms for 10,000 ops.
Under 4.0, the same code requires 2,766 and 18,297 ms.
cd jboss-4.0.0/server rm -rf default mv standard default
Deploy and run as before.