This content has been marked as final.
Show 1 reply
-
1. Re: Serialization of objects in local invocation
jaikiran Jun 28, 2017 8:56 AM (in response to arkadyz)For in-vm (i.e. calls within the same JVM), the server makes an optimization and skips the serialization/deserialization of those objects that get passed around. It's not something to rely on but just an application server detail. However, this can be configured to be spec compliant and get the pass-by-value (essentially the serialize/deserialize) in the EJB3 subsystem by configuring the "pass-by-value" attribute of "in-vm-remote-interface-invocation" element. The details of it are available in the XSD of EJB3 subsystem (for example wildfly/wildfly-ejb3_5_0.xsd at master · wildfly/wildfly · GitHub )