1 Reply Latest reply on Dec 4, 2002 11:06 AM by jmoring

    Remote calls to EJBs

    sokrates

      Hello,

      is there any possibility to perform remote calls to session beans using JBoss 3.0.4 - if the client sits in the same JVM as the session bean?

      Although setting
      <home-invoker>jboss:service=invoker,type=jrmp</home-invoker>
      <bean-invoker>jboss:service=invoker,type=jrmp</bean-invoker>
      in the jboss.xml entry of the session bean and configuring jndi.properties appropriately, parameters are always passed by reference.

      The idea is to use local interfaces where local calls are really needed and remote interfaces otherwise. But how testing local interfaces if JBoss always uses local calls?!

      Thanx in advance for your replies!
      Sokrates

        • 1. Re: Remote calls to EJBs

          If you use remote interfaces JBoss optimizes these calls when intra-JVM. It does not force the use of local interfaces. The point being if you use remote interfaces they are optimized when possible and not when optimization is not possible. The JBoss folks actually discourage the use of local interfaces.

          HTH