4 Replies Latest reply on Apr 16, 2002 10:27 AM by Brian Bohnet

    JBoss2.4.4 and Local Interfaces - Required or not??

    Abe Newbie

      Hi,

      I am curious to know exactly what optimization techniques JBoss employs for RMI... is there any need to implement local interfaces within JBoss when all beans use the same VM? Does JBoss optimize inVM remote calls in someway, effectively negating the use of local interfaces (in this particular case)?

      Thanks,
      Abe

        • 1. Re: JBoss2.4.4 and Local Interfaces - Required or not??
          Lars Bergmann Newbie

          > I am curious to know exactly what optimization
          > techniques JBoss employs for RMI...

          pass by reference is activated by default in standardjboss.xml (serialization is bypassed):

          <container-invoker-conf>
          4444
          True
          </container-invoker-conf>


          lars

          • 2. Re: JBoss2.4.4 and Local Interfaces - Required or not??
            Brian Bohnet Newbie

            Sort of a newbie question here,
            I am a little confused with this remote and local interface topic.
            In my situation, having jboss and tomcat on the same machine, must I access the beans using the remote interface?(which is indicated in the ejb specs as quite alot of overhead)
            My understanding is that there are two instances of the jvm on the same server(jboss & tomcat) which WOULD require using the remote interface.
            So, how do you setup a servlet or an app to use the local interface?
            Or, is this local interface usage provided within specific containers, like jrun etc?
            thanks
            Brian
            > Hi,
            >
            > I am curious to know exactly what optimization
            > techniques JBoss employs for RMI... is there any need
            > to implement local interfaces within JBoss when all
            > beans use the same VM? Does JBoss optimize inVM
            > remote calls in someway, effectively negating the use
            > of local interfaces (in this particular case)?
            >
            > Thanks,
            > Abe

            • 3. Re: JBoss2.4.4 and Local Interfaces - Required or not??
              Andreas Schouten Newbie

              &gt; Sort of a newbie question here,
              &gt; I am a little confused with this remote and local
              &gt; interface topic.
              &gt; In my situation, having jboss and tomcat on the same
              &gt; machine, must I access the beans using the remote
              &gt; interface?(which is indicated in the ejb specs as
              &gt; quite alot of overhead)

              You can't access local interfaces from jsp layer, because You can only define references to local interfaces in the env-namespace of a ejb.

              The ejb spec. does not forbid access from other components except ejb's to local interfaces. But a proprietary solution for the references is needed. Jboss 3.0 will provide this (or does it today), as well global references to local interfaces in the ejb layer. The You would have to define the references in jbossweb.xml respective jboss.xml.

              &gt; My understanding is that there are two instances of
              &gt; the jvm on the same server(jboss & tomcat) which
              &gt; WOULD require using the remote interface.

              No, if You use the integrated versions jboss/jetty or jboss/tomcat, only one VM run on Your server.

              &gt; So, how do you setup a servlet or an app to use the
              &gt; local interface?

              See jboss 3.0 doku. I do not use it by now.

              &gt; Or, is this local interface usage provided within
              &gt; specific containers, like jrun etc?
              &gt; thanks
              &gt; Brian
              &gt; &gt; Hi,
              &gt; &gt;
              &gt; &gt; I am curious to know exactly what optimization
              &gt; &gt; techniques JBoss employs for RMI... is there any
              &gt; need
              &gt; &gt; to implement local interfaces within JBoss when
              &gt; all
              &gt; &gt; beans use the same VM? Does JBoss optimize inVM
              &gt; &gt; remote calls in someway, effectively negating the
              &gt; use
              &gt; &gt; of local interfaces (in this particular case)?
              &gt; &gt;
              &gt; &gt; Thanks,
              &gt; &gt; Abe
              &gt;

              • 4. Re: JBoss2.4.4 and Local Interfaces - Required or not??
                Brian Bohnet Newbie

                Thanks for all the information, it will help us out.