<!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>&nbsp;</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>&nbsp;Bean-Communication shall be 
"byValue" (with marshalling)&nbsp;<SPAN class=910550606-12082008>or&nbsp;</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)&nbsp;are faster 
but we need this&nbsp;choice&nbsp;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)&nbsp;we then&nbsp;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>&nbsp;</DIV>
<DIV><SPAN class=971271010-11082008><FONT face=Arial size=2>How&nbsp;can the 
application control&nbsp;whether the parameters are passed on "byValue" or 
"byReference" (if possible for the return-value too) - and 
which&nbsp;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>&nbsp;</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&nbsp;"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>&nbsp;</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>