I've got a problem with calling Beans from Tomcat:
We are working with JBoss 4.0.4, where we use the Built-in Tomcat and EJB-2.0-SessionBeans. We tried to upgrade to JBoss 4.2.2 and now the parameters during "internal" Calls from the Tomcat-Application to SessionBeans are passed on "byReference" instead of "byValue" as before.
We want to have the possibility for the application to decide whether the Bean-Communication shall be "byValue" (with marshalling) or "byReference".
I know that local calls (byReference) are faster but we need this choice due to our development strategy.
How can the application control whether the parameters are passed on "byValue" or "byReference" (if possible for the return-value too) - and which parameters/JBoss-Settings have to be made to have both possibilities.
We already use an InitialContext with an URL in the environment and the lookup-name for the Bean is the "remote-jndi-name" and I don't want to disable the "CallByValue" generally (with "CallByValue=false" in the ear-deployer.xml and/or jboss-service.xml), so this may be a "tricky one".
Thanks and best regards, Robert