<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial size=2><SPAN
class=910550606-12082008>Hello,</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial size=2><SPAN
class=910550606-12082008></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial size=2>We are working with
JBoss 4.2.2, 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.</FONT></SPAN></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial><FONT size=2>We want to
have the possibility for the application to decide wh<SPAN
class=910550606-12082008>ether the</SPAN> Bean-Communication shall be
"byValue" (with marshalling) <SPAN class=910550606-12082008>or </SPAN>
"byReference".<SPAN class=910550606-12082008> </SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial><FONT size=2><SPAN
class=910550606-12082008>I know that local calls (byReference) are faster
but we need this choice due to our development strategy: even if the
core is changing (and some of the parameter-Objects are in the core), we don't
want to change all our Tomcat-Applications (but some have to be adapted) but the
Beans are used by all Applications and therefore have to use the "new stuff" -
with local calls (and old applications) we then get a linkage error,
since the (old) applications have its own
classloaders.</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=971271010-11082008>We already use
an InitialContext with an URL in the environment and the lookup-name for the
Bean is the "remote-jndi-name"<SPAN class=910550606-12082008>
a</SPAN></SPAN><SPAN class=971271010-11082008><SPAN
class=910550606-12082008><FONT>nd I don't want to disable the "CallByValue"
generally (with "CallByValue=false" in the ear-deployer.xml and/or
jboss-service.xml)</FONT></SPAN></SPAN></FONT></FONT></DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=971271010-11082008><SPAN class=910550606-12082008><FONT
face=Arial size=2>Thanks and best regards, Robert
Gelzleichter</FONT></SPAN></SPAN></DIV></DIV></BODY></HTML>