??! eventually indeed JBoss does the magic! No RMI calls event if all the EJBS are declared only with Remote Interface! Though ok I have to say that probably there is some kind of difference when it comes to CPU cycles on perfoming or not perfoming remote calls!
Anyway the problem started with an application deployed on JBoss 4.0.0 where it had only -remote- EJBs and perfomed only remote calls and in a similar application in JBoss 4.0.2 where again it had again only remote EJBs but it was perfoming loca calls (we are talking to single VM apps..both). So after a tip dropped from a JBoss Developer D.Andreadis we had a look on \server\default\conf\jboss-service.xml | and thembean code="org.jboss.naming.NamingService" | name="jboss:service=Naming" | xmbean-dd="resource:xmdesc/NamingService-xmbean.xml"> | <!-- The call by value mode. true if all lookups are unmarshalled using | the caller's TCL, false if in VM lookups return the value by reference. | --> | <attribute name="CallByValue">false</attribute> | see CallByValue and the \server\default\deploy\ear-deployer.xml | <!-- EAR deployer, remove if you are not using ear deployments --> | <mbean code="org.jboss.deployment.EARDeployer" | name="jboss.j2ee:service=EARDeployer"> | <attribute name="Isolated">false</attribute> | <!-- A flag indicating if the ear components should have in VM call | optimization disabled. | --> | <attribute name="CallByValue">false</attribute> | see callByValue! On JBoss 4.0.0 these settings are set to true so JBoss wont perform any magic at all! On Jboss 4.0.2 and on...these are set to false so ..it behaves very clever detacting all the local calls. so watch out if you are have not noticed these settings... Many thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953682#3953682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953682 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user